From 16295ce071ff07d45bfb5a7d4aef4daed4456a27 Mon Sep 17 00:00:00 2001 From: neingeist Date: Tue, 3 Jul 2018 15:54:13 +0200 Subject: [PATCH] git-status-all: show dirty git repos --- git-status-all | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 git-status-all diff --git a/git-status-all b/git-status-all new file mode 100755 index 0000000..d43f9ec --- /dev/null +++ b/git-status-all @@ -0,0 +1,13 @@ +#!/bin/sh +# Show dirty git repos + +for d in */; do + ( + cd $d + status=`git status -s 2>/dev/null` + if [ $? -ne 0 -o -n "$status" ]; then + echo "== $d" + git status -s + fi + ) +done