Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 001101/23c564611e12bd0d03578bf025a8d492 to your computer and use it in GitHub Desktop.
Save 001101/23c564611e12bd0d03578bf025a8d492 to your computer and use it in GitHub Desktop.
go through all directories, test for .git/ and diff stat two branches
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