]> de.git.xonotic.org Git - xonotic/div0-gittools.git/blobdiff - git-recurse
git-recurse: comments
[xonotic/div0-gittools.git] / 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"
                        ;;