chiark / gitweb /
Better "stg rebase" help text
authorAlex Chiang <achiang@hp.com>
Mon, 24 Mar 2008 18:54:10 +0000 (18:54 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 24 Mar 2008 18:54:10 +0000 (18:54 +0000)
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>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/rebase.py

index 12faaf8c6a94224bc398c5ed3f2139fb66c56142..ec2e04c5486c773ccd7f2456d2ba90898acf6406 100644 (file)
@@ -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..top-patch"""
 
 directory = DirectoryGotoToplevel()
 options = [make_option('-n', '--nopush',