X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-not-pushed-carefully;h=0ae1935e3bccacec74c64a85c16afa17c8d0c3c5;hb=79ba07250233fb6894906aba99726858c948ddea;hp=29384e703fcb77289e2b7097b6ff992f6c39e88d;hpb=c48617fadacbae620b1b454360948df730a3e250;p=git-scripts.git diff --git a/ls-not-pushed-carefully b/ls-not-pushed-carefully index 29384e7..0ae1935 100755 --- a/ls-not-pushed-carefully +++ b/ls-not-pushed-carefully @@ -1,12 +1,13 @@ #! /bin/sh -cd "`dirname \"$0\"`" && PROG_DIR="`pwd`" && +cd "`dirname \"$0\"`" && prog_dir="`pwd`" && cd "$HOME"/tmp && rm -rf ls-not-pushed-carefully.tmp && LSTMP="$HOME"/tmp/ls-not-pushed-carefully.tmp \ -"$PROG_DIR"/do-all \ +"$prog_dir"/do-all \ 'test "$g" = "$d/.git" || continue;' \ 'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \ - 'test -n "`git status -b | grep "ahead\|behind"`" && echo "$d"' && + 'test -n "`git status --branch --short | grep "ahead\|behind"`" && + echo "$d"' && cd "$HOME"/tmp && exec rm -rf ls-not-pushed-carefully.tmp