Skip to content

Instantly share code, notes, and snippets.

@dominiccooney
Created October 11, 2009 00:19
Show Gist options
  • Save dominiccooney/207277 to your computer and use it in GitHub Desktop.
Save dominiccooney/207277 to your computer and use it in GitHub Desktop.
Find the git commit of an svn revision
#!/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