Re: pull into dirty working tree
From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:43:17
fredag 15 juni 2007 skrev Martin Langhoff:
On 6/15/07, Linus Torvalds [off-list ref] wrote:quoted
But yeah, if you can check in stage 1 (_without_ changing the working tree) whether the merge will work, then everything is fine.Aha- so at phase 1 we know - what paths are dirty in the checkout - what paths of the merge need an actuall diff3 merge perhaps we can do those diff3 merges elsewhere (tempfiles). If they are trivial diff3 merges, then we can complete the merge operation without touching the checkout. After this is complete, we can then update the checkout...
Can't you treat this like git-am or git-rabase. Save the diff to .dottest. Then peform the pull just like you do normally involving the user if necessary. After that either automatically or after a --continue/--abort you apply the diff with it's own conflicts. -- robin