git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How does git now about future renames during a rebase?
@ 2012-05-06  4:11 Jon Seymour
  2012-05-06  8:52 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Seymour @ 2012-05-06  4:11 UTC (permalink / raw)
  To: Git Mailing List

I had a history that looked like this:

1. some other commit
2. commit that moves files from one directory to a new directory
3. commit that edits files in the new directory.

I then did an interactive rebase to move the commit 3 before commit 2.

1. some other commit
3a. commit that edits files in the new directory.
2a. commit that moves files from one directory to a new directory

I didn't expect this to work, but somehow git worked out that it
needed to apply the change in 3 to the original location of the files.

How does it do this?

jon.,

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

end of thread, other threads:[~2012-05-06  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-06  4:11 How does git now about future renames during a rebase? Jon Seymour
2012-05-06  8:52 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).