5 # TODO this logic should probably rather be in rev-parse itself
14 first=`processarg "$first"`
15 rest=`processarg "$rest"`
21 first=`processarg "$first"`
27 first=`processarg "$first"`
33 first=`processarg "$first"`
39 first=`processarg "$first"`
44 first=`processarg "$first"`
48 first=${1%%$SEPARATOR*}
50 if git rev-parse "$first" >/dev/null 2>&1; then
70 set -- "$@" "`processarg "$X"`"
75 # recurse through all sub-repos
76 find . -type d -name \*.git | while IFS= read -r GITDIR; do
77 processargs git --git-dir="$GITDIR" --work-tree="${GITDIR%/.git}" "$@"