[MINC-development] Sorting old commit history..

Andrew Janke a.janke at gmail.com
Tue Nov 17 01:31:39 EST 2015


Hrm, so I read and/or did something wrong.

Changing commit hashes is definitely something we don't want to do,
even if they are all from long ago.

More reading required.


a


On 17 November 2015 at 16:19, Robert D. Vincent
<robert.d.vincent at mcgill.ca> wrote:
> 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
>>
>>
>
>
> _______________________________________________
> MINC-development mailing list
> MINC-development at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development
>


More information about the MINC-development mailing list