Created
November 7, 2016 10:54
-
-
Save connordavison/b1509d86254b64c211bda95ce6d46026 to your computer and use it in GitHub Desktop.
whatson.sh
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
| # Lists all unique branches merged into given branch, assuming regular commit message given | |
| # | |
| # Params: | |
| # - Name of branch to assess | |
| # | |
| function whatson() { | |
| git log --oneline $1 | grep "Merge branch.*$1" | cut -d' ' -f4 | sort | uniq | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment