]> git.armaanb.net Git - bin.git/commitdiff
add git-check
authorArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Tue, 10 Nov 2020 18:37:04 +0000 (13:37 -0500)
committerArmaan Bhojwani <3fb650a9-b47e-4604-a282-1dd91953b2ee@anonaddy.me>
Tue, 10 Nov 2020 18:37:04 +0000 (13:37 -0500)
git-check [new file with mode: 0755]

diff --git a/git-check b/git-check
new file mode 100755 (executable)
index 0000000..7e85792
--- /dev/null
+++ b/git-check
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+for i in $(ls); do
+  cd $i
+  if [[ ! ($(git diff --stat) == "") ]]; then
+    echo $i
+    chars=${#i}
+    for (( i = 1; i < $chars; i++ )); do
+      echo -n "="
+    done
+    echo "="
+    git diff --stat
+    echo
+  fi
+  cd ..
+done