completion: bash: a bunch of fixes, cleanups, and reorganization
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest26 patches 9 repliesIn review
Changes in v2 from the cover letter
* Added bug fixes
* A lot more reorganization
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | completion: bash: fix prefix detection in branch.*contrib/ | +2 | 3 replies | |
| 2/26 | completion: bash: add correct suffix in variablescontrib/ t/ | +10 | 0 replies | |
| 3/26 | completion: bash: fix for suboptions with valuecontrib/ t/ | +16 | 0 replies | |
| 4/26 | completion: bash: do not modify COMP_WORDBREAKScontrib/ contrib/ | +1 | 0 replies | |
| 5/26 | test: completion: fix currently typed wordst/ | +2 | 0 replies | |
| 6/26 | test: completion: add run_func() helpert/ | +24 | 4 replies | |
| 7/26 | completion: bash: remove non-append functionalitycontrib/ | +1 | 0 replies | |
| 8/26 | completion: bash: get rid of _append() functionscontrib/ contrib/ | +7 | 0 replies | |
| 9/26 | completion: bash: get rid of any non-append codecontrib/ | +3 | 0 replies | |
| 10/26 | completion: bash: factor out check in __gitcompcontrib/ | +4 | 0 replies | |
| 11/26 | completion: bash: simplify equal suffix checkcontrib/ | +1 | 0 replies | |
| 12/26 | completion: bash: refactor __gitcompcontrib/ | +18 | 2 replies | |
| 13/26 | completion: bash: simplify __gitcompcontrib/ | +2 | 0 replies | |
| 14/26 | completion: bash: change suffix check in __gitcompcontrib/ | +1 | 0 replies | |
| 15/26 | completion: bash: improve __gitcomp suffix codecontrib/ | +4 | 0 replies | |
| 16/26 | completion: bash: simplify config_variable_namecontrib/ | +4 | 0 replies | |
| 17/26 | test: completion: switch __gitcomp_nl prefix testt/ | +3 | 0 replies | |
| 18/26 | completion: bash: simplify _get_comp_words_by_ref()contrib/ t/ | +10 | 0 replies | |
| 19/26 | completion: bash: refactor _get_comp_words_by_ref()contrib/ | +39 | 0 replies | |
| 20/26 | completion: bash: cleanup _get_comp_words_by_ref()contrib/ | +8 | 0 replies | |
| 21/26 | completion: bash: trivial cleanupcontrib/ | +3 | 0 replies | |
| 22/26 | completion: bash: rename _get_comp_words_by_ref()contrib/ t/ | +92 | 0 replies | |
| 23/26 | completion: bash: improve __gitcomp descriptioncontrib/ | +1 | 0 replies | |
| 24/26 | completion: bash: add __gitcomp_optscontrib/ contrib/ t/ | +101 | 0 replies | |
| 25/26 | completion: bash: cleanup __gitcomp* invocationscontrib/ | +9 | 0 replies | |
| 26/26 | completion: bash: shuffle __gitcomp functionscontrib/ | +135 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/26] completion: bash: a bunch of fixes, cleanups, and reorganization
I found a couple of bugs and inconsistencies.
Also low-hanging fruit in terms of redundant code that can be merged and removed.
Tons of cleanups.
And refactoring the ancient _get_comp_words_by_ref.
Since v1:
* Added bug fixes
* A lot more reorganization
Felipe Contreras (26):
completion: bash: fix prefix detection in branch.*
completion: bash: add correct suffix in variables
completion: bash: fix for suboptions with value
completion: bash: do not modify COMP_WORDBREAKS
test: completion: fix currently typed words
test: completion: add run_func() helper
completion: bash: remove non-append functionality
completion: bash: get rid of _append() functions
completion: bash: get rid of any non-append code
completion: bash: factor out check in __gitcomp
completion: bash: simplify equal suffix check
completion: bash: refactor __gitcomp
completion: bash: simplify __gitcomp
completion: bash: change suffix check in __gitcomp
completion: bash: improve __gitcomp suffix code
completion: bash: simplify config_variable_name
test: completion: switch __gitcomp_nl prefix test
completion: bash: simplify _get_comp_words_by_ref()
completion: bash: refactor _get_comp_words_by_ref()
completion: bash: cleanup _get_comp_words_by_ref()
completion: bash: trivial cleanup
completion: bash: rename _get_comp_words_by_ref()
completion: bash: improve __gitcomp description
completion: bash: add __gitcomp_opts
completion: bash: cleanup __gitcomp* invocations
completion: bash: shuffle __gitcomp functions
contrib/completion/git-completion.bash | 648 +++++++++++-------------- contrib/completion/git-completion.zsh | 20 +- t/t9902-completion.sh | 159 +++--- 3 files changed, 377 insertions(+), 450 deletions(-)
Signature · 1 line
2.29.2