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

[PATCH 1/2] Add --merged option to rebase.

From
Yann Dirson <ydirson@altern.org>
Date
Feb 12, 2007, 21:08 UTC
Message-ID
<20070212210824.28413.71656.stgit@gandelf.nowhere.earth>
In-Reply-To
<20070212210628.28413.87407.stgit@gandelf.nowhere.earth>
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
 stgit/commands/rebase.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/stgit/commands/rebase.py b/stgit/commands/rebase.py
index 8b7bca0..2951421 100644
--- a/stgit/commands/rebase.py
+++ b/stgit/commands/rebase.py
@@ -31,6 +31,9 @@ Pop all patches from current stack, move the stack base to the given
 
 options = [make_option('-n', '--nopush',
                        help = 'do not push the patches back after rebasing',
+                       action = 'store_true'),
+           make_option('-m', '--merged',
+                       help = 'check for patches merged upstream',
                        action = 'store_true')]
 
 def func(parser, options, args):
@@ -59,6 +62,6 @@ def func(parser, options, args):
 
     # push the patches back
     if not options.nopush:
-        push_patches(applied)
+        push_patches(applied, options.merged)
 
     print_crt_patch()
Previous: Yann DirsonNext: Yann Dirson
Message 2 of 3 in “A couple of small StGit improvements”
  1. 0/2 A couple of small StGit improvementsYann Dirson, Feb 12, 2007
  2. 1/2 Add --merged option to rebase.Yann Dirson, Feb 12, 2007
  3. 2/2 Use canonical command name in help message.Yann Dirson, Feb 12, 2007

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.