From: Linus Torvalds Date: Thu, 22 Sep 2005 22:05:02 GMT Subject: Re: Please undo "Use git-merge instead of git-resolve in Message-ID: In-Reply-To: On Thu, 22 Sep 2005, Daniel Barkalow wrote: > > Would it be worthwhile to have a flag to make git-read-tree abort rather > than making a mess if you have any dirty state and the merge isn't > completely automatic? It's certainly easy enough to write. I don't think it would be wrong, necessarily. On the other hand, it might be easier to just instead do a git diff HEAD > .git/pre-merge-diff and let it go at that. If the merge ends up being nasty, you can then just do git reset --hard git-apply .git/pre-merge-diff or something. I dunno. This is not something that has caused me a lot of headache. I certainly _hope_ that people generally don't keep a lot of dirty state around: I do it for truly small stuff that I don't care about. Let's face it - if I cared about it, I'd have committed it (possibly to another branch). It's not like that's hard. So the dirty stuff really does tend to be only trivial things. Linus