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 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
| #!/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#.+) | (.+#ew1@srobo.org)) | |
| an="Eric Wieser" | |
| am="wieser.eric@gmail.com";; | |
| (lt1#.+) | (.+#lt1@srobo.org)) | |
| an="Louis Taylor" | |
| am="kragniz@gmail.com";; | |
| ((nd1|Nic)#.+) | (.+#nd1@srobo.org)) | |
| an="Nic Dart" | |
| am="nicholasjdart@gmail.com";; | |
| ((rabbidrabbit|jl3)#.+) | (.+#(jl3@srobo.org|jonathan@linux-4git.site)) | |
| an="Jonathan Laver" | |
| am="jonathan.laver@gmail.com";; | |
| ((unknown|Systemetric)#.+) | (.+#(robot-society@hillsroad.ac.uk | robot-society@.hillsroad.ac.uk))) | |
| an="Systemetric" | |
| am="robot-society@hillsroad.ac.uk";; | |
| esac | |
| case "$cn#$cm" in | |
| (ew1#.+) | (.+#ew1@srobo.org)) | |
| cn="Eric Wieser" | |
| cm="wieser.eric@gmail.com";; | |
| (lt1#.+) | (.+#lt1@srobo.org)) | |
| cn="Louis Taylor" | |
| cm="kragniz@gmail.com";; | |
| ((nd1|Nic)#.+) | (.+#nd1@srobo.org)) | |
| cn="Nic Dart" | |
| cm="nicholasjdart@gmail.com";; | |
| ((rabbidrabbit|jl3)#.+) | (.+#(jl3@srobo.org|jonathan@linux-4git.site)) | |
| cn="Jonathan Laver" | |
| cm="jonathan.laver@gmail.com";; | |
| ((unknown|Systemetric)#.+) | (.+#(robot-society@hillsroad.ac.uk | robot-society@.hillsroad.ac.uk))) | |
| cn="Systemetric" | |
| cm="robot-society@hillsroad.ac.uk";; | |
| (Apache#.+) | (.+#apache@optimusprime.ecs.soton.ac.uk)) | |
| 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