Re: [StGit PATCH] Remove --undo flags from stg commands and docs
- From
- Catalin Marinas <catalin.marinas@gmail.com>
- Date
- Jul 12, 2008, 09:58 UTC
- Message-ID
- <b0943d9e0807120258g26e30c4bn5b7f77f69a0c3db3@mail.gmail.com>
- In-Reply-To
- <20080708042131.GB2247@diana.vm.bytemark.co.uk>
2008/7/8 Karl Hasselström <kha@treskal.com>:
Show 19 quoted lines
> On 2008-07-07 21:54:01 +0100, Catalin Marinas wrote: > >> 2008/7/4 Karl Hasselström <kha@treskal.com>: >> >> > In this one, I've just removed the --undo flag from sync without >> > adding anything back. Still undetermined if that's OK. >> >> I think it should be ok (see the other thread). Anyway, have you >> heard of anyone else using sync apart from me? > > No, I haven't. > > I've tried to understand what it does, and as far as I can tell it > doesn't do quite what I want. (What I want is the ability to 3-way > merge StGit patch stacks, so that I can modify the same patch stack in > several places and merge back and forth. From what I recall, the sync > command is more like a 2-way merge -- that is, it doesn't take the > last common ancestor into account. But it's been a while since I > studied it.)
No, the sync command is a 3-way merge between the top of a remote patch, the top of the current patch (current HEAD actually) and the bottom of the remote patch as ancestor. It also has a mode to synchronise with a patch file and it applies the patch onto the bottom of the current patch and does the merging between patch tops afterwards.
This is not ideal as I have to deal with safe conflicts several time (maybe adding git-rerere support would help). If you have better ideas for keeping two stacks in sync, I'm happy to accept them (or maybe just a different workflow).
-- Catalin