Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: file deletion in index lost after checkout -b

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:17

Jing Xue [off-list ref] writes:

[jc: please redirect an answer _meant for you_ off to the list with M-F-T header]
In Git 1.6.0 the following sequence:
...
The deletion of 2.txt appears lost during 'checkout -b foo', while the
modification and addition were both brought over. Is it a bug?
This behaviour is unchanged since early June 2005.

    http://thread.gmane.org/gmane.comp.version-control.git/4641/focus=4646

This is exactly the case marked as *0*, which both Linus and I said "it
feels somewhat wrong but otherwise we cannot start from an empty index".

We may want to do better this time around, though.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help