Created
December 3, 2014 05:10
-
-
Save agoddard/cdb95b903a3a91c721c8 to your computer and use it in GitHub Desktop.
Revisions
-
agoddard created this gist
Dec 3, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/bin/sh for i in $(ls -d */); do cd ${i%%/}; if [ -d .git ]; then modified=`git status --porcelain | grep M` untracked=`git status --porcelain | grep "?"` unpushed=`git status | grep ahead` if ! [ -z "$modified" ]; then echo "${i%%/} contains uncommitted changes" fi if ! [ -z "$untracked" ]; then echo "${i%%/} contains untracked files" fi if ! [ -z "$unpushed" ]; then echo "${i%%/} has not been pushed" fi fi cd ../ done