]> git.phdru.name Git - git-scripts.git/blobdiff - ls-status
Refactoring: Factor out run-repos and run-workdirs
[git-scripts.git] / ls-status
index 5d3808392d8233b223a82b0c556ae1520386551d..3bcc50cab7970ca060a3f45a6b5a9909b7f9e442 100755 (executable)
--- a/ls-status
+++ b/ls-status
@@ -1,12 +1,9 @@
 #! /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