git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: stgit - continue rebase after merge conflict?

From
ACAlex Chiang <achiang@hp.com>
Date
Feb 26, 2008, 17:49 UTC
Message-ID
<20080226174928.GA15862@ldl.fc.hp.com>
In-Reply-To
<b0943d9e0802260856j6e9b0053ne4916149d8e4387c@mail.gmail.com>
* Catalin Marinas <catalin.marinas@gmail.com>:
Show 5 quoted lines
> On 26/02/2008, Alex Chiang <achiang@hp.com> wrote:
> >  How does one do a stg rebase if there are merge conflicts?
> 
> Basically, you solve the conflict, refresh the current patch and
> continue with 'stg push' or 'stg goto <top patch>'.
Thanks.
> 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.
I see.
> >  Doing an 'stg help rebase' isn't so helpful.
> 
> Yes, indeed. It could be made better.
How about this?
/ac
From: Alex Chiang <achiang@hp.com>

Enhance rebase help string by providing guidance on merge conflict resolution during a rebase.

Based on text suggested by Catalin Marinas.
Signed-off-by: Alex Chiang <achiang@hp.com>
---
diff --git a/stgit/commands/rebase.py b/stgit/commands/rebase.py
index 12faaf8..29d741b 100644
--- a/stgit/commands/rebase.py
+++ b/stgit/commands/rebase.py
@@ -27,7 +27,19 @@ help = 'move the stack base to another point in history'
 usage = """%prog [options] <new-base-id>
 
 Pop all patches from current stack, move the stack base to the given
-<new-base-id> and push the patches back."""
+<new-base-id> and push the patches back.
+
+If you experience merge conflicts, resolve the problem and continue
+the rebase by executing the following sequence:
+
+	$ stg resolved -a [-i]
+	$ stg refresh
+	$ stg goto top-patch
+
+Or if you want to skip that patch:
+
+	$ stg push --undo
+	$ stg push next-patch.."""
 
 directory = DirectoryGotoToplevel()
 options = [make_option('-n', '--nopush',
Previous: Catalin MarinasNext: Karl Hasselström
Message 3 of 7 in “stgit - continue rebase after merge conflict?”
  1. Alex ChiangFeb 26, 2008
  2. Catalin MarinasFeb 26, 2008
  3. Alex ChiangFeb 26, 2008
  4. Karl HasselströmFeb 27, 2008
  5. Alex ChiangFeb 28, 2008
  6. Catalin MarinasFeb 28, 2008
  7. Karl HasselströmFeb 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.