Thread (1 message) 1 message, 1 author, 2018-03-07

Re: [PATCH 2/2] completion: simplify _git_notes

From: Junio C Hamano <hidden>
Date: 2018-03-07 18:51:56

SZEDER Gábor [off-list ref] writes:
That works fine, but this would work just as well and has one less
case arm:
OK, I missed that "obvious optimization" opportunity.  I agree that
would work.
quoted hunk
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index ab80f4e6e8..038af63c1a 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1839,6 +1839,8 @@ _git_notes ()
 	*,--*)
 		__gitcomp_builtin notes_$subcommand
 		;;
+	prune,*)
+		;;
 	*)
 		case "$prev" in
 		-m|-F)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help