Skip to content

Instantly share code, notes, and snippets.

@wdjunaidi
Created May 26, 2015 03:28
Show Gist options
  • Save wdjunaidi/7e15ef3f7963c965141e to your computer and use it in GitHub Desktop.
Save wdjunaidi/7e15ef3f7963c965141e to your computer and use it in GitHub Desktop.
Grab first word in commits between two ranges to extract defect number
git log --pretty=tformat:%s <commit>..<commit> | cut -f1 -d' ' | cut -f1 -d':' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment