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>
Shawn O. Pearce committed
Feb 4, 2007 at 02:38 UTC
ec8048913217d8ff6e54950a0cb8ab2e739a1d1f
1 file changed
+3
-1
contrib/completion/git-completion.bash
+3
-1
@@ -494,6 +494,7 @@ _git_format_patch ()
494
--signoff
495
--in-reply-to=
496
--full-index --binary
497
+ --not --all
498
"
499
return
500
;;
@@ -532,6 +533,7 @@ _git_log ()
533
--author= --committer= --grep=
534
--all-match
535
--pretty= --name-status --name-only
536
+ --not --all
537
"
538
return
539
;;
@@ -898,7 +900,7 @@ _gitk ()
900
return
901
;;
902
esac
901
- __gitcomp "$(__git_refs)"
903
+ __git_complete_revlist
904
}
905
906
complete -o default -o nospace -F _git git