Skip to content

completion: bash: general cleanups and reorganizations

Felipe Contreras git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10test: completion: add run_func() helpert/t9902-completion.sh+24 -340 replies
2/10completion: bash: remove non-append functionalitycontrib/completion/git-completion.bash+1 -20 replies
3/10completion: bash: get rid of _append() functionscontrib/completion/git-completion.bash+7 -280 replies
4/10completion: bash: get rid of any non-append codecontrib/completion/git-completion.bash+2 -80 replies
5/10completion: bash: do not modify COMP_WORDBREAKScontrib/completion/git-completion.bash+0 -50 replies
6/10completion: bash: simplify _get_comp_words_by_ref()contrib/completion/git-completion.bash t/t9902-completion.sh+10 -410 replies
7/10completion: bash: refactor _get_comp_words_by_ref()contrib/completion/git-completion.bash+39 -540 replies
8/10completion: bash: cleanup _get_comp_words_by_ref()contrib/completion/git-completion.bash+8 -110 replies
9/10completion: bash: trivial cleanupcontrib/completion/git-completion.bash+3 -30 replies
10/10completion: bash: move _get_comp_words_by_ref()contrib/completion/git-completion.bash t/t9902-completion.sh+92 -940 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] completion: bash: general cleanups and reorganizations

This patch series removes redundant code (add vs. append functions) and reorganizes some ancient code that is only used in one place.

Felipe Contreras (10):
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: do not modify COMP_WORDBREAKS
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: move _get_comp_words_by_ref()

 contrib/completion/git-completion.bash | 271 +++++++++----------------
 t/t9902-completion.sh                  |  81 +++-----
 2 files changed, 129 insertions(+), 223 deletions(-)
Signature · 1 line
2.29.2