prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/edit-description-recursive || exit 1'
+exec "$prog_dir"/run-repos "$prog_dir"/edit-description-recursive
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/fix-config-recursive || exit 1'
+exec "$prog_dir"/run-repos "$prog_dir"/fix-config-recursive
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all \
- 'echo "----- $d -----" && cd "$d" &&' \
- '"$prog_dir"/fsck-recursive || exit 1'
+exec "$prog_dir"/run-repos -v $prog_dir"/fsck-recursive
#! /bin/sh
-d="`git rev-parse --show-toplevel`" &&
-g="`git rev-parse --git-dir`" &&
-
-if [ -n "$d" ]; then
- if [ -n "`git ls-files -v | grep ^[a-z]`" ]; then echo "$d"; fi
+if [ -n "`git ls-files -v | grep ^[a-z]`" ]; then
+ pwd
fi
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-assumed-recursive || exit 1'
+exec "$prog_dir"/run-workdirs "$prog_dir"/ls-assumed-recursive
fi
export verbose
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-branches-recursive || exit 1'
+exec "$prog_dir"/run-repos "$prog_dir"/ls-branches-recursive
#! /bin/sh
-d="`git rev-parse --show-toplevel`" &&
-
-if [ -n "$d" ]; then
- if [ -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" ]
- then
- echo "$d"
- fi
+if [ -n "`git ls-files --deleted --modified --others --unmerged --killed --exclude-standard --directory --no-empty-directory`" ]
+then
+ pwd
fi
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-dirty-recursive || exit 1'
+exec "$prog_dir"/run-workdirs "$prog_dir"/ls-dirty-recursive
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-no-description-recursive || exit 1'
+exec "$prog_dir"/run-repos "$prog_dir"/ls-no-description-recursive
fi
export verbose
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-remotes-recursive || exit 1'
+exec "$prog_dir"/run-repos "$prog_dir"/ls-remotes-recursive
#! /bin/sh
-d="`git rev-parse --show-toplevel`" &&
-
-if [ -n "$d" ]; then
- if [ -n "`git stash list`" ]; then echo "$d"; fi
+if [ -n "`git stash list`" ]; then
+ pwd
fi
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-stash-recursive || exit 1'
+exec "$prog_dir"/run-workdirs "$prog_dir"/ls-stash-recursive
#! /bin/sh
-d="`git rev-parse --show-toplevel`" &&
+d="`pwd`" &&
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir &&
+cd "$d" &&
-if [ -n "$d" ]; then
- cd "`dirname \"$0\"`" &&
- prog_dir="`pwd`" &&
- export prog_dir &&
- cd "$d" &&
-
- if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi
-fi
+if [ -n "`"$prog_dir"/git-status.sh --short`" ]; then echo "$d"; fi
prog_dir="`pwd`" &&
export prog_dir
-exec "$prog_dir"/do-all 'cd "$d" && "$prog_dir"/ls-status-recursive || exit 1'
+exec "$prog_dir"/run-workdirs "$prog_dir"/ls-status-recursive
"$@" &&
if [ -f .gitmodules ]; then
- exec git submodule foreach --quiet --recursive "$@"
+ exec git submodule foreach --quiet --recursive "$@" || exit 1
fi
--- /dev/null
+#! /bin/sh
+
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir
+
+if [ "$1" = "-v" ]; then
+ verbose=1
+ shift
+fi
+
+cat "$prog_dir"/locate-all.list |
+while read d; do
+ if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
+ if [ "$verbose" = 1 ]; then echo "$d"; fi
+ cd "$d" && "$@" < /dev/tty || exit 1
+done
--- /dev/null
+#! /bin/sh
+
+cd "`dirname \"$0\"`" &&
+prog_dir="`pwd`" &&
+export prog_dir
+
+if [ "$1" = "-v" ]; then
+ verbose=1
+ shift
+fi
+
+cat "$prog_dir"/locate-all.list |
+while read d; do
+ if ! test -d "$d"; then echo "No such dir: $d" >&2; continue; fi
+ if ! test -d "$d/.git"; then continue; fi # Skip bare repos
+ if [ "$verbose" = 1 ]; then echo "$d"; fi
+ cd "$d" && "$@" < /dev/tty || exit 1
+done
cd "`dirname \"$0\"`" &&
prog_dir="`pwd`" &&
-exec "$prog_dir"/do-all \
- 'test "$g" = "$d/.git" || continue &&' \
- 'cd "$d"; echo "----- $d -----"; "$prog_dir"/set-commit-date-recursive'
+exec "$prog_dir"/run-workdirs -v "$prog_dir"/set-commit-date-recursive'