Re: pull into dirty working tree
- From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
- Date
- Jun 15, 2007, 18:26 UTC
- Message-ID
- <200706152026.58609.robin.rosenberg.lists@dewire.com>
- In-Reply-To
- <46a038f90706142033p1b7f5b49uc5b4af72b0419c8e@mail.gmail.com>
fredag 15 juni 2007 skrev Martin Langhoff:
Show 12 quoted lines
> On 6/15/07, Linus Torvalds <torvalds@linux-foundation.org> wrote: > > 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