]> git.phdru.name Git - git-scripts.git/commitdiff
Test status only in repos with worktrees
authorOleg Broytman <phd@phdru.name>
Mon, 9 Jan 2017 17:03:34 +0000 (20:03 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 9 Jan 2017 17:10:25 +0000 (20:10 +0300)
all-status
all-status-carefully

index 6f11e591523faa81816538f5eb4a18f7b093ba7e..60ab248403f596b5666728ee38cf22dfd73f874d 100755 (executable)
@@ -2,5 +2,5 @@
 
 prog_dir=`dirname "$0"`
 "$prog_dir"/do-all \
 
 prog_dir=`dirname "$0"`
 "$prog_dir"/do-all \
-   'echo "----- $d -----" && cd "$d" &&' \
-   'git status --short --branch || exit 1'
+   'test "$g" = "$d/.git" || continue; cd "$d" &&' \
+   'echo "----- $d -----" && git status --short --branch || exit 1'
index 8a767d22ff31841fda7fabbf8225acf3df9796d1..97c2c4b548d34e621a000a1091404b5d0703ecfe 100755 (executable)
@@ -8,6 +8,7 @@ cd "`dirname \"$0\"`" && prog_dir="`pwd`" &&
 rm -rf "$STMP" && mkdir "$STMP" &&
 
 "$prog_dir"/do-all \
 rm -rf "$STMP" && mkdir "$STMP" &&
 
 "$prog_dir"/do-all \
+   'test "$g" = "$d/.git" || continue;' \
    'rsync -aW --del --protocol=28 "$d" "$STMP" && cd "$STMP/$b" &&' \
    'test -n "`git status --short`" && echo "----- $d -----" &&' \
    'git status --short --branch'
    'rsync -aW --del --protocol=28 "$d" "$STMP" && cd "$STMP/$b" &&' \
    'test -n "`git status --short`" && echo "----- $d -----" &&' \
    'git status --short --branch'