From: Junio C Hamano Date: Tue, 08 Jul 2008 20:21:35 GMT Subject: Re: [PATCH] bash: offer only paths after '--' Message-ID: <7vtzf0rusw.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080708165614.GB8224@neumann> SZEDER Gábor 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?