From 22fcf4b0ab0d04d3b5f23a857a45cadcee167236 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 20 Oct 2010 16:22:02 +0200 Subject: [PATCH] git-recurse: comments --- git-recurse | 3 +++ 1 file changed, 3 insertions(+) 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" ;; -- 2.39.2