Created
October 11, 2009 00:19
-
-
Save dominiccooney/207277 to your computer and use it in GitHub Desktop.
Find the git commit of an svn revision
This file contains 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
#!/bin/bash | |
# Parses git log and finds the commit with the specified svn change | |
# number. | |
git log | awk "/^commit / {c=\$2} /git-svn-id:.*@$1 / {print c}" | |
# This is obsoleted by git svn find-rev rNNNN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment