Skip to content

Instantly share code, notes, and snippets.

@steshaw
Created April 22, 2010 20:14
Show Gist options
  • Save steshaw/375752 to your computer and use it in GitHub Desktop.
Save steshaw/375752 to your computer and use it in GitHub Desktop.
git log file-of-interest | grep ^commit | cut -d' ' -f2 | while read commit; do echo "=== commit $commit ==="; if git show $commit | grep string-of-interest; then break; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment