Add a script to fix the author w/ git-filter-branch

This commit is contained in:
Nathan Sobo 2013-01-30 16:53:36 -07:00
parent 45d5e714fa
commit aeb1e3fd3c

17
script/fix-author Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
usage() {
echo "usage: $0 sha name email"
exit 1
}
if [ ! $3 ]; then
usage
fi
git filter-branch -f --env-filter "
export GIT_AUTHOR_NAME='$2'
export GIT_AUTHOR_EMAIL='$3'
export GIT_COMMITTER_NAME='$2'
export GIT_COMMITTER_EMAIL='$3'
" -- $1..HEAD