Created
March 13, 2012 19:38
-
-
Save rabbidrabbit/2031054 to your computer and use it in GitHub Desktop.
Rewrites the SR repos history
This file contains 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
#!/bin/bash | |
git filter-branch -f --tag-name-filter cat --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
case "$an#$am" in | |
(ew1#.+) | (.+#[email protected])) | |
an="Eric Wieser" | |
am="[email protected]";; | |
(lt1#.+) | (.+#[email protected])) | |
an="Louis Taylor" | |
am="[email protected]";; | |
((nd1|Nic)#.+) | (.+#[email protected])) | |
an="Nic Dart" | |
am="[email protected]";; | |
((rabbidrabbit|jl3)#.+) | (.+#([email protected]|[email protected])) | |
an="Jonathan Laver" | |
am="[email protected]";; | |
((unknown|Systemetric)#.+) | (.+#([email protected] | [email protected]))) | |
an="Systemetric" | |
am="[email protected]";; | |
esac | |
case "$cn#$cm" in | |
(ew1#.+) | (.+#[email protected])) | |
cn="Eric Wieser" | |
cm="[email protected]";; | |
(lt1#.+) | (.+#[email protected])) | |
cn="Louis Taylor" | |
cm="[email protected]";; | |
((nd1|Nic)#.+) | (.+#[email protected])) | |
cn="Nic Dart" | |
cm="[email protected]";; | |
((rabbidrabbit|jl3)#.+) | (.+#([email protected]|[email protected])) | |
cn="Jonathan Laver" | |
cm="[email protected]";; | |
((unknown|Systemetric)#.+) | (.+#([email protected] | [email protected]))) | |
cn="Systemetric" | |
cm="[email protected]";; | |
(Apache#.+) | (.+#[email protected])) | |
cn=$an | |
cm=$am;; | |
esac | |
export GIT_AUTHOR_NAME="$an" | |
export GIT_AUTHOR_EMAIL="$am" | |
export GIT_COMMITTER_NAME="$cn" | |
export GIT_COMMITTER_EMAIL="$cm" | |
' -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment