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(-) -- 2.29.2