Created
April 29, 2016 01:28
-
-
Save carld/87f2453ed622f92f220451b7e8ae6a26 to your computer and use it in GitHub Desktop.
go through all directories, test for .git/ and diff stat two branches
This file contains 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
for dir in `find . -type d -depth 1`; do | |
cd $dir; | |
if [ -d .git ]; then | |
if git branch -ra | grep -q "$B2\$"; then | |
echo $dir; | |
git diff --shortstat $B1 $B2; | |
fi | |
fi | |
cd ..; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment