Re: stgit - continue rebase after merge conflict?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2008-02-26 16:56:53 +0000, Catalin Marinas wrote:

> or (if you want to skip that patch):
>
> $ stg push --undo
> $ stg push next-patch..

Better use

  $ stg push next-patch..top-patch

which works even if you don't want to push _all_ patches.

> The 'rebase' command doesn't store any information about the state
> of the stack and cannot continue it. Maybe we'll do something in the
> next release as the refactored code has support for transactions.

Hmm, that's an interesting idea. Maybe an "stg resume" command that
one would run after having resolved the conflicts.

One implementation would be to save a .stgit-todo file with contents
like this:

  push foo
  push bar
  push baz

It would have to handle more than just pushes, however. For example,
stg coalesce will try to first push the given patches in order, and
then coalesce them, so for that case .stgit-todo might look like this:

  push bar
  push baz
  coalesce foo bar baz
  push frotz

We should be able to redefine each non-atomic stgit command in terms
of such atomic commands, and get resumeability all over the place.

I'm not sure this is a good idea, but it is intriguing.

-- 
Karl Hasselström, kha@xxxxxxxxxxx
      www.treskal.com/kalle
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux