Created
August 14, 2015 13:29
-
-
Save m4tthumphrey/679d189c241dcb27d267 to your computer and use it in GitHub Desktop.
Quick command for checking for dirty git repositories inside of a composer vendor directory. Move file somewhere in your path and run `cstatus <vendor name>` to get a list of any dirty repositories.
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 characters
curdir=$(pwd) | |
vendor=$1 | |
for f in $curdir/vendor/$vendor/*; do | |
[ -d $f ] && cd "$f" && output=$(git status --porcelain) && [ "$output" != "" ] && echo "$f" && echo "$output" | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment