Skip to contentSkip to conversation

bash: Support internal revlist options better.

PATCH In review Shawn O. Pearce 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 8/8 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.

---
 contrib/completion/git-completion.bash |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
contrib/completion/git-completion.bash +3 -1
index 3b1f100..466cc32 100755
@@ -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
Signature · 1 line
1.5.0.rc3.22.g5057