Skip to content

Instantly share code, notes, and snippets.

@oodavid
Created March 3, 2014 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oodavid/9328695 to your computer and use it in GitHub Desktop.
Save oodavid/9328695 to your computer and use it in GitHub Desktop.
Git > Get changes in VERSION for tagging purposes
# Search common.php for changes in the VERSION
# Note - won't follow line changes, it always looks at line 11...
git log --all --format=format:%H -G'\$VERSION' common.php | xargs -L 1 git blame common.php -L 11,11 > ~/versions.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment