Created
September 23, 2011 15:56
-
-
Save petemcw/1237737 to your computer and use it in GitHub Desktop.
Script to build an "authors" template file for migrating Subversion repo to Git
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
#!/usr/bin/env bash | |
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
Yeah