Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Strange effect merging empty file

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:21

Zbigniew Jędrzejewski-Szmek  [off-list ref] writes:
# Merge import 1.0 and remove the empty file
git merge  --no-edit import^
git rm empty.txt
git commit -m 'Remove empty file'

# Merge import 1.1 and watch empty.txt contents show up in .gitignore
git merge --no-edit import
cat .gitignore
Given what merge-recursive does, I am not very surprised, even though I
agree that it feels like a very surprising end user experience ;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help