Skip to content

Instantly share code, notes, and snippets.

@bewest
Created August 12, 2012 07:41
Show Gist options
  • Save bewest/3330515 to your computer and use it in GitHub Desktop.
Save bewest/3330515 to your computer and use it in GitHub Desktop.
useful git
git log --all-match --grep="interesting/subject/prefix" -10000 \
  --pretty="format:commit %h %an %s %N" trunk \
  | while read op hash name subject ; do
    echo $op $hash r$(git svn find-rev $hash) $name $subject;
  done 

git log   --grep="interesting/subject/prefix" \
  --pretty="format:commit %h %an %s"   | grep -E "^commit" \
  | while read op hash author subject; do
    echo $op $hash r$(git svn find-rev $hash) $subject;
  done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment