Skip to content

Commit ec80489

Browse files
spearceJunio C Hamano
authored andcommitted
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>
1 parent b339177 commit ec80489

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ _git_format_patch ()
494494
--signoff
495495
--in-reply-to=
496496
--full-index --binary
497+
--not --all
497498
"
498499
return
499500
;;
@@ -532,6 +533,7 @@ _git_log ()
532533
--author= --committer= --grep=
533534
--all-match
534535
--pretty= --name-status --name-only
536+
--not --all
535537
"
536538
return
537539
;;
@@ -898,7 +900,7 @@ _gitk ()
898900
return
899901
;;
900902
esac
901-
__gitcomp "$(__git_refs)"
903+
__git_complete_revlist
902904
}
903905

904906
complete -o default -o nospace -F _git git

0 commit comments

Comments
 (0)