* [PATCH] bash: Add more long options to be completed with "git --<TAB>"
@ 2008-03-06 16:52 Teemu Likonen
0 siblings, 0 replies; only message in thread
From: Teemu Likonen @ 2008-03-06 16:52 UTC (permalink / raw
To: git, gitster; +Cc: Teemu Likonen
Add the following long options to be completed with command "git":
--paginate
--work-tree=
--help
Signed-off-by: Teemu Likonen <tlikonen@iki.fi>
---
I'm not at all expert in bash completion code but this seems to work and can be
useful.
contrib/completion/git-completion.bash | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 49e6df0..1198547 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1194,11 +1194,14 @@ _git ()
case "${COMP_WORDS[COMP_CWORD]}" in
--*=*) COMPREPLY=() ;;
--*) __gitcomp "
+ --paginate
--no-pager
--git-dir=
--bare
--version
--exec-path
+ --work-tree=
+ --help
"
;;
*) __gitcomp "$(__git_commands) $(__git_aliases)" ;;
--
1.5.4.3.451.g43956
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-03-06 16:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-06 16:52 [PATCH] bash: Add more long options to be completed with "git --<TAB>" Teemu Likonen
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).