Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH] bash: offer only paths after '--'

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:54

SZEDER Gábor [off-list ref] writes:
Hope that I got the commit message right (;
It was very readable.  Thanks.
+__git_has_doubledash ()
+{
+	local c=1
+	while [ $c -lt $COMP_CWORD ]; do
+		if [ "--" = "${COMP_WORDS[c]}" ]; then
+			return 0
+		fi
+		c=$((++c))
This assignment is somewhat curious, although it should work as expected
either way ;-)

Shawn?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help