[Insight-developers] Renames in ITK history :)

Brad King brad.king at kitware.com
Tue Aug 10 15:04:52 EDT 2010


On 08/10/2010 02:52 PM, Matthew McCormick (thewtex) wrote:
> 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.

Actually there is no difference between "git mv" and

  $ mv old new
  $ git add new
  $ git rm old

The former (git mv) is just a helper to do all the steps.
It never records renames explicitly.

As Matt said, Git can follow content that is copied rather
than renamed.  It just requires extra options to enable the
behavior (-C) because it adds more computation time and is
only needed occasionally.

-Brad


More information about the Insight-developers mailing list