#! /bin/sh
-exec "`dirname \"$0\"`"/do-all \
- 'test "$g" = "$d/.git" || continue; cd "$d" &&' \
- 'test -n "`git status -s`" && echo "$d"'
+d="`git rev-parse --show-toplevel`" &&
+
+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