mbox series

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

Message ID 20201104174716.783348-1-felipe.contreras@gmail.com (mailing list archive)
Headers show
Series completion: bash: general cleanups and reorganizations | expand

Message

Felipe Contreras Nov. 4, 2020, 5:47 p.m. UTC
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(-)