From: Shawn O. Pearce Date: Sun, 4 Feb 2007 07:38:47 +0000 (-0500) Subject: bash: Support internal revlist options better. X-Git-Tag: v1.5.0-rc4~52 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec8048913217d8ff6e54950a0cb8ab2e739a1d1f;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 3b1f100f1..466cc32f4 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