Last active
August 29, 2015 14:20
-
-
Save tiborvass/583779b76e7a5f2b31a6 to your computer and use it in GitHub Desktop.
Verifying copy/pastes of Go functions when refactoring
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f=functionName; for x in '-' '+'; do git diff origin/pull/$PR^ origin/pull/$PR | awk '/^\'$x'func .* '$f'\(/,/^\'$x'[ '$'\t'']*\}/ { print }' | sed 's/^\'$x'//' > /tmp/$x; done; diff -u /tmp/{-,+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment