summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-02-04 07:38:47 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-04 08:18:41 (GMT)
commitec8048913217d8ff6e54950a0cb8ab2e739a1d1f (patch)
tree4a07a0680d83300148f629da9cc7b3dd79d21ad7 /contrib/completion
parentb3391775e87bed073b93a0a534169a794eceebd7 (diff)
downloadgit-ec8048913217d8ff6e54950a0cb8ab2e739a1d1f.zip
git-ec8048913217d8ff6e54950a0cb8ab2e739a1d1f.tar.gz
git-ec8048913217d8ff6e54950a0cb8ab2e739a1d1f.tar.bz2
bash: Support internal revlist options better.
format-patch/log/whatchanged all take --not and --all as options to the internal revlist process. So these should be supported as possible completions. gitk takes anything rev-list/log/whatchanged takes, so we should use complete_revlist to handle its options. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'contrib/completion')
-rwxr-xr-xcontrib/completion/git-completion.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 3b1f100..466cc32 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -494,6 +494,7 @@ _git_format_patch ()
--signoff
--in-reply-to=
--full-index --binary
+ --not --all
"
return
;;
@@ -532,6 +533,7 @@ _git_log ()
--author= --committer= --grep=
--all-match
--pretty= --name-status --name-only
+ --not --all
"
return
;;
@@ -898,7 +900,7 @@ _gitk ()
return
;;
esac
- __gitcomp "$(__git_refs)"
+ __git_complete_revlist
}
complete -o default -o nospace -F _git git