Skip to content

Instantly share code, notes, and snippets.

@connordavison
Created November 7, 2016 10:54
Show Gist options
  • Select an option

  • Save connordavison/b1509d86254b64c211bda95ce6d46026 to your computer and use it in GitHub Desktop.

Select an option

Save connordavison/b1509d86254b64c211bda95ce6d46026 to your computer and use it in GitHub Desktop.
whatson.sh
# 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