How does git now about future renames during a rebase?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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.,
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Newbies FAQ]     [Linux Kernel Development]     [Free Online Dating]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Free Online Dating]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]     [Linux Resources]

Add to Google