Skip to content

Instantly share code, notes, and snippets.

@nfreear
Created May 29, 2012 15:37
Show Gist options
  • Select an option

  • Save nfreear/2829127 to your computer and use it in GitHub Desktop.

Select an option

Save nfreear/2829127 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Creating a svn.authorsfile when migrating from subversion to git
# By Josh Nichols September 07, 2008
# http://technicalpickles.com/posts/creating-a-svn-authorsfile-when-migrating-from-subversion-to-git
# Run this inside an subversion checkout. It outputs a template for the svn.authorsfile to the console..
authors=$(svn log -q | grep -e '^r' | awk 'BEGIN { FS = "|" } ; { print $2 }' | sort | uniq)
for author in ${authors}; do
echo "${author} = NAME <USER@DOMAIN>";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment