[MINC-development] Sorting old commit history..

Robert D. Vincent robert.d.vincent at mcgill.ca
Tue Nov 17 01:19:26 EST 2015


When I try this, it does change the commit hashes - do we really want to do
that?

On Tue, Nov 17, 2015 at 1:18 AM, Robert D. Vincent <bert at phalarope.com>
wrote:

> When I try this, it does change the commit hashes - do we really want to
> do that?
>
> On Tue, Nov 17, 2015 at 12:30 AM, Andrew Janke <a.janke at gmail.com> wrote:
>
>> Hi all,
>>
>> I was searching for some changes I did in mincpik a while back on
>> github and couldn't find them. Took a while to determine that they
>> were made back when we were using CVS and thus under the username
>> "rotor"....  There is no way to easily sort this in the github user
>> interface as you can't verify an email address of "rotor".
>>
>> Does anyone have any major objections to a cleanup/rewrite of all the
>> old CVS authors in MINC? something like this?
>>
>> git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "rotor" ];
>>   then export GIT_AUTHOR_NAME="Andrew Janke"; export
>> GIT_AUTHOR_EMAIL=a.janke at gmail.com; fi; git commit-tree "$@"'
>>
>> Note that this only changes the author email and NOT the
>> GIT_COMMITTER_EMAIL so hashes shouldn't change. Please correct me if
>> I'm wrong!
>>
>> I've tested this on a repository of mine that was also converted from
>> CVS (volregrid), you can see what it then comes up in github as:
>>
>>    https://github.com/andrewjanke/volregrid/commits/master/volregrid.c
>>
>> Note the difference between the original commits and the old ones
>> pre-2008. This will be same with old users such as louis, alex, neelin
>>
>> ta
>>
>>
>> a
>> _______________________________________________
>> MINC-development mailing list
>> MINC-development at bic.mni.mcgill.ca
>> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/minc-development/attachments/20151117/c9eb7228/attachment.html>


More information about the MINC-development mailing list