Skip to content

Instantly share code, notes, and snippets.

@ruphy
Created February 26, 2009 21:54
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 ruphy/71139 to your computer and use it in GitHub Desktop.
Save ruphy/71139 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$first="75ae56f7ffbc5be14e532e004314e421213107cc"
list = String.new(`git rev-list --first-parent #{$first}..HEAD`)
a = Array.new()
list.scan(/\w+/) { |s|
a << s
}
a.reverse!
a.size.times do |i|
system("git svn set-tree --add-author-from "+a[i]);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment