]> git.rm.cloudns.org Git - xonotic/div0-gittools.git/commitdiff
git-recurse: comments
authorRudolf Polzer <divverent@alientrap.org>
Wed, 20 Oct 2010 14:22:02 +0000 (16:22 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 20 Oct 2010 14:22:02 +0000 (16:22 +0200)
git-recurse

index c27b6d9e056ae92bf1bf7a48bfbb96854718a673..a1604e13c6375e10a85057d505f3e469a968725d 100755 (executable)
@@ -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"
                        ;;