From 3ae3b62b948c2d1b32742d3e6f1b103f65f258e0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 15 Oct 2016 01:15:22 +0300 Subject: [PATCH] Add all-status all-status-carefully --- all-status | 6 ++++++ all-status-carefully | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 all-status create mode 100755 all-status-carefully diff --git a/all-status b/all-status new file mode 100755 index 0000000..6f11e59 --- /dev/null +++ b/all-status @@ -0,0 +1,6 @@ +#! /bin/sh + +prog_dir=`dirname "$0"` +"$prog_dir"/do-all \ + 'echo "----- $d -----" && cd "$d" &&' \ + 'git status --short --branch || exit 1' diff --git a/all-status-carefully b/all-status-carefully new file mode 100755 index 0000000..8a767d2 --- /dev/null +++ b/all-status-carefully @@ -0,0 +1,13 @@ +#! /bin/sh + +STMP="$HOME"/tmp/all-status-carefully.tmp +export STMP +trap 'exec rm -rf "$STMP"' 0 HUP INT QUIT TERM + +cd "`dirname \"$0\"`" && prog_dir="`pwd`" && +rm -rf "$STMP" && mkdir "$STMP" && + +"$prog_dir"/do-all \ + 'rsync -aW --del --protocol=28 "$d" "$STMP" && cd "$STMP/$b" &&' \ + 'test -n "`git status --short`" && echo "----- $d -----" &&' \ + 'git status --short --branch' -- 2.39.5