git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/7] completion bash: add more options and commands

From
Bbitte.keine.werbung.einwerfen@googlemail.com <bitte.keine.werbung.einwerfen@googlemail.com>
Date
Jan 22, 2017, 22:57 UTC
Message-ID
<20170122225724.19360-1-cornelius.weig@tngtech.com>
From: Cornelius Weig <cornelius.weig@tngtech.com>

The cli interface for git has the greatest versatility of all git tools. Its productivity depends on how easy it is to type commands and to remember options. The command line completion helps two-fold by easing input and displaying possible options.

Bash completion lacks support for several options and some useful commands. Although the selection of recognized options is always opinionated (e.g. the documentation for git-completion.bash says that 'common' long options are recognized), I think that extending the cli completion will always increase the productivity.

To that end, the following commits add completion support for several existing options and subcommands. For every command all options that are mentioned in the introduction of its man page should now be available for completion.

Cornelius Weig (7):
  completion: teach options to submodule subcommands
  completion: add subcommand completion for rerere
  completion: improve bash completion for git-add
  completion: teach ls-remote to complete options
  completion: teach replace to complete options
  completion: teach remote subcommands option completion
  completion: recognize more long-options
 contrib/completion/git-completion.bash | 132 +++++++++++++++++++++++++++------
 1 file changed, 110 insertions(+), 22 deletions(-)
-- 
2.10.2
Next: bitte.keine.werbung.einwerfen@googlemail.com
Message 1 of 41 in “completion bash: add more options and commands”
  1. 0/7 completion bash: add more options and commandsbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  2. 1/7 completion: teach options to submodule subcommandsbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  3. 2/7 completion: add subcommand completion for rererebitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  4. SZEDER GáborFeb 2, 2017
  5. Cornelius WeigFeb 2, 2017
  6. 4/7 completion: teach ls-remote to complete optionsbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  7. SZEDER GáborFeb 2, 2017
  8. Cornelius WeigFeb 2, 2017
  9. Junio C HamanoFeb 2, 2017
  10. 7/7 completion: recognize more long-optionsbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  11. Johannes SixtJan 24, 2017
  12. Cornelius WeigJan 24, 2017
  13. Junio C HamanoJan 24, 2017
  14. Cornelius WeigJan 24, 2017
  15. Stefan BellerJan 24, 2017
  16. Cornelius WeigJan 25, 2017
  17. Stefan Beller, Jan 25, 2017
  18. Cornelius WeigJan 25, 2017
  19. Stefan BellerJan 25, 2017
  20. Linus TorvaldsJan 25, 2017
  21. Eric WongJan 25, 2017
  22. Philip OakleyJan 25, 2017
  23. Stefan BellerJan 25, 2017
  24. Cornelius WeigJan 26, 2017
  25. Stefan BellerJan 26, 2017
  26. Junio C HamanoJan 26, 2017
  27. Philip OakleyJan 26, 2017
  28. Cornelius WeigJan 27, 2017
  29. Junio C HamanoJan 27, 2017
  30. 0/7 completion: recognize more long-optionscornelius.weig@tngtech.com, Jan 27, 2017
  31. 7/7 completion: recognize more long-optionscornelius.weig@tngtech.com, Jan 27, 2017
  32. SZEDER GáborJan 31, 2017
  33. Cornelius WeigFeb 1, 2017
  34. SZEDER GáborFeb 2, 2017
  35. Cornelius WeigFeb 2, 2017
  36. 3/7 completion: improve bash completion for git-addbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  37. 5/7 completion: teach replace to complete optionsbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  38. 6/7 completion: teach remote subcommands option completionbitte.keine.werbung.einwerfen@googlemail.com, Jan 22, 2017
  39. SZEDER GáborFeb 2, 2017
  40. Cornelius WeigFeb 2, 2017
  41. SZEDER GáborJan 31, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.