Re: Files different for me

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: Files different for me

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

Linus Torvalds [off-list ref] writes:
quoted
You, I and experienced users know what to do.  Deal *only* with the last
kind, mark them with "git add" after you are done with each of them, and
make sure you do not say "-a" when committing the result, to exclude the
first kind from the merge result.

I've been wondering if we can make this safer for others.
You're right. We could decide to have a mode (maybe default to it, so that 
people like me can just use a config option to enable "expert" mode) that
simply refuses to do the merge if it doesn't succeed cleanly if there were 
dirty files in the tree.
"git merge" has always had this "stash away local changes before starting,
and unstash once done" safety when we try to run multiple strategies.
A patch to trigger it even for a single strategy case may be trivial.

Re: Files different for me

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:46:17


On Wed, 25 Feb 2009, Junio C Hamano wrote:
"git merge" has always had this "stash away local changes before starting,
and unstash once done" safety when we try to run multiple strategies.
A patch to trigger it even for a single strategy case may be trivial.
Well, I'd feel better if it was actually in the low-level merge code, the 
way the current "I refuse to merge if the file is dirty" logic is.

			Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help