Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamhunter/8722857 to your computer and use it in GitHub Desktop.
Save adamhunter/8722857 to your computer and use it in GitHub Desktop.
echo "commit,reverted" && git log -600 | grep -B 8 'This reverts commit' | awk '/commit/ {if($1 == "This") { printf "%s %s\n", substr($4, 0, length($4) - 1), nextline } else { printf "%s, ", $2 }; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment