Skip to content

Instantly share code, notes, and snippets.

@petemcw

petemcw/svn2git.sh

Created Sep 23, 2011
Embed
What would you like to do?
Script to build an "authors" template file for migrating Subversion repo to Git
#!/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