From: Rudolf Polzer Date: Wed, 20 Oct 2010 14:22:02 +0000 (+0200) Subject: git-recurse: comments X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdiv0-gittools.git;a=commitdiff_plain;h=22fcf4b0ab0d04d3b5f23a857a45cadcee167236 git-recurse: comments --- diff --git a/git-recurse b/git-recurse index c27b6d9..a1604e1 100755 --- a/git-recurse +++ b/git-recurse @@ -11,6 +11,7 @@ processarg() prefix= suffix= case "$1" in + # have to detect some rev-parse syntax *..*) first=${1%%..*} rest=${1#*..} @@ -47,6 +48,7 @@ processarg() first=`processarg "$first"` echo "^$first" ;; + # handle foo@@bar so that if foo exists, foo stays, otherwise bar *$SEPARATOR*) first=${1%%$SEPARATOR*} rest=${1#*$SEPARATOR} @@ -56,6 +58,7 @@ processarg() processarg "$rest" fi ;; + # other args stay as is *) echo "$1" ;;