Forked from carld/gist:87f2453ed622f92f220451b7e8ae6a26
Created
February 18, 2017 09:07
-
-
Save 001101/23c564611e12bd0d03578bf025a8d492 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