User Tools

  • Logged in as: anonymous (anonymous)
  • Log Out

Site Tools


mantisbt:svn_git_conversion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mantisbt:svn_git_conversion [2008/11/07 14:32]
jreese created
mantisbt:svn_git_conversion [2011/11/16 07:53] (current)
atrol The page rendering was broken (maybe since new PHP version on mantisbt.org). Added new line to fix it at end of file.
Line 3: Line 3:
 ===== Username conversion ===== ===== Username conversion =====
  
-Using the script at [http://​www.undefinedfire.com/​lab/​changing-existing-git-authors/​as a basis, generated the following shell script:+Using the script at http://​www.undefinedfire.com/​lab/​changing-existing-git-authors/​ as a basis, generated the following shell script:
  
 <​code>​ <​code>​
 #!/bin/sh #!/bin/sh
-if [ "​$GIT_AUTHOR_NAME"​ = "​siebrand"​ ]; +if [ "​$GIT_AUTHOR_NAME"​ = "​nuclear_eclipse"​ ];
-then +
-export GIT_AUTHOR_EMAIL="​s.mazeland@xs4all.nl"​ +
-export GIT_AUTHOR_NAME="​Siebrand Mazeland"​ +
- +
-elif [ "​$GIT_AUTHOR_NAME"​ = "​thraxisp"​ ]; +
-then +
-export GIT_AUTHOR_EMAIL="​thraxisp@logicaloutcome.ca"​ +
-export GIT_AUTHOR_NAME="​Glenn Henshaw"​ +
- +
-elif [ "​$GIT_AUTHOR_NAME"​ = "​prichards"​ ]; +
-then +
-export GIT_AUTHOR_EMAIL="​paul@mantisforge.org"​ +
-export GIT_AUTHOR_NAME="​Paul Richards"​ +
- +
-elif [ "​$GIT_AUTHOR_NAME"​ = "​vboctor"​ ]; +
-then +
-export GIT_AUTHOR_EMAIL="​vboctor@gmail.com"​ +
-export GIT_AUTHOR_NAME="​Victor Boctor"​ +
- +
-elif [ "​$GIT_AUTHOR_NAME"​ = "​nuclear_eclipse"​ ];+
 then then
 export GIT_AUTHOR_EMAIL="​jreese@leetcode.net"​ export GIT_AUTHOR_EMAIL="​jreese@leetcode.net"​
 export GIT_AUTHOR_NAME="​John Reese" export GIT_AUTHOR_NAME="​John Reese"
  
-elif [ "​$GIT_AUTHOR_NAME"​ = "​giallu"​ ]; +....
-then +
-export GIT_AUTHOR_EMAIL="​giallu@gmail.com" +
-export GIT_AUTHOR_NAME="​Gianluca Sforna"​ +
- +
-elif [ "​$GIT_AUTHOR_NAME"​ = "​daryn"​ ]; +
-then +
-export GIT_AUTHOR_EMAIL="​daryn@iivip.com" +
-export GIT_AUTHOR_NAME="​Daryn Warriner"​+
  
 elif [ "​$GIT_AUTHOR_NAME"​ = "(no author)"​ ]; elif [ "​$GIT_AUTHOR_NAME"​ = "(no author)"​ ];
Line 60: Line 32:
 $ git filter-branch --tag-name-filter cat --env-filter '. ~/​__git-new-authors-shell'​ -- --all $ git filter-branch --tag-name-filter cat --env-filter '. ~/​__git-new-authors-shell'​ -- --all
 </​code>​ </​code>​
 +
mantisbt/svn_git_conversion.1226086351.txt.gz · Last modified: 2008/11/07 14:33 (external edit)