All of lore.kernel.org
 help / color / mirror / Atom feed
* A git-mv question
@ 2010-02-02  0:08 Ron Garret
  2010-02-02  0:29 ` Nicolas Pitre
  2010-02-02 15:32 ` Jakub Narebski
  0 siblings, 2 replies; 5+ messages in thread
From: Ron Garret @ 2010-02-02  0:08 UTC (permalink / raw)
  To: git

If I do a git-mv *and* edit the file all in one commit, does that get 
recorded in a way that allows git to track the change through the 
changed file name?  In other words, if I do just a git-mv (without 
changing the file) git can track that by observing that two differently 
named objects in two different commit trees contain the same blob.  But 
if the file is edited then the blobs will be different.  Is git smart 
enough to distinguish a git-mv and edit from, say, the equivalent git-rm 
and git-add?  If so, how does it do it?

Thanks,
rg

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-02 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-02  0:08 A git-mv question Ron Garret
2010-02-02  0:29 ` Nicolas Pitre
2010-02-02  0:46   ` Junio C Hamano
2010-02-02  7:21   ` Ron Garret
2010-02-02 15:32 ` Jakub Narebski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.