[Insight-developers] Renames in ITK history :)

Matthew McCormick (thewtex) matt at mmmccormick.com
Tue Aug 10 14:52:07 EDT 2010


On Tue, Aug 10, 2010 at 12:32 PM, Brad King <brad.king at kitware.com> wrote:

> Hi Folks,
>
> FYI, from a version control perspective Hans did a nice job
> finishing the CONSOLIDATED_MORPHOLOGY move out of Review.
> Take a look at this commit:
>
>  http://itk.org/gitweb?p=ITK.git;a=commitdiff;h=19f50f6b
>
> One can see a histogram of the changes as below.  Note how Git
> detects the renames correctly even though there are some small
> code changes at the same time.  The key is that the new files
> were added and the old files removed in the same commit.  This
> is helpful because "git blame" knows how to follow the renames.
>
> -Brad
>
>
Yes, very nice.  As a side note, git has some smarts to detect renamed
files, but they try to limit the computational burden.  Git can be helped
along by using
  git mv
instead of just using mv.

HTH,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100810/796df141/attachment.htm>


More information about the Insight-developers mailing list