Last active
January 4, 2016 14:29
-
-
Save jagill/8634769 to your computer and use it in GitHub Desktop.
Find remote branches which have been fully merged into a given branch.
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
baseBranch=develop | |
for b in `git branch -r | awk '{print $1}'`; do | |
numLogs=`git log --oneline $baseBranch..$b | wc -l`; | |
lastModified=`git show $b | grep "^Date:" | sed 's/^Date:\(.*\)/\1/'` | |
echo $b : $numLogs : $lastModified; | |
done | grep " 0 " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment