mbox series

[00/47] completion: git-completion 1.3 patches

Message ID 20210101021622.798041-1-felipe.contreras@gmail.com (mailing list archive)
Headers show
Series completion: git-completion 1.3 patches | expand

Message

Felipe Contreras Jan. 1, 2021, 2:15 a.m. UTC
These patches represent what comprises git-completion 1.3, a friendly
fork I'm maintaining.

Some of these have already been sent, and should be in "seen", but for
some reason they are not [1]. Others have been sent, but probably won't
receive any review soon. And others, particularly zsh improvements,
haven't been sent before.

A summary:

 * Tons of bugfixes
 * zsh: a bunch of improvements
 * zsh: an important fix regarding quoting
 * zsh: automatic suffix removal

The rest is reorganization, but it's still much needed.

I'm not anticipating these patches to be merged, I'm providing them in
case somebody is interested.

[1] https://lore.kernel.org/git/5fea87e816fff_23821208d4@natae.notmuch/

Felipe Contreras (47):
  completion: bash: fix prefix detection in branch.*
  completion: fix for suboptions with value
  completion: bash: fix for multiple dash commands
  completion: bash: add correct suffix in variables
  completion: bash: do not modify COMP_WORDBREAKS
  test: completion: fix currently typed words
  test: completion: switch __gitcomp_nl prefix test
  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: zsh: fix options with arguments
  completion: zsh: expand --git-dir file argument
  completion: zsh: add support for general -C opts
  completion: zsh: fix for undefined completions
  completion: zsh: add support for general -c opts
  completion: zsh: fix extra space on foo=
  completion: zsh: add excluded options
  completion: zsh: always set compset
  completion: factor out check in __gitcomp
  completion: simplify equal suffix check
  completion: refactor __gitcomp
  completion: simplify __gitcomp
  completion: bash: change suffix check in __gitcomp
  completion: improve __gitcomp suffix code
  completion: bash: simplify config_variable_name
  test: completion: add missing test
  completion: bash: improve __gitcomp description
  completion: add __gitcomp_opts
  completion: bash: cleanup __gitcomp* invocations
  completion: bash: shuffle __gitcomp functions
  completion: zsh: simplify __gitcomp_direct
  completion: zsh: shuffle __gitcomp* functions
  completion: zsh: fix direct quoting
  completion: zsh: add elements individually in __gitcomp_opts
  completion: zsh: add __gitcompadd helper
  completion: zsh: add correct removable suffix
  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: add __git_have_func helper
  completion: bash: improve function detection
  test: completion: add tests for __git_complete
  completion: add proper public __git_complete
  completion: zsh: add higher-priority location

 contrib/completion/git-completion.bash | 704 ++++++++++++-------------
 contrib/completion/git-completion.zsh  | 133 +++--
 t/t9902-completion.sh                  | 179 ++++---
 3 files changed, 498 insertions(+), 518 deletions(-)