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

[PATCH 2/4] Copy remote and merge settings when cloning a branch

From
PRPavel Roskin <proski@gnu.org>
Date
Feb 4, 2007, 05:32 UTC
Message-ID
<20070204053226.15035.40105.stgit@dv.roinet.com>
In-Reply-To
<20070204053221.15035.88015.stgit@dv.roinet.com>
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
 stgit/stack.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/stgit/stack.py b/stgit/stack.py
index c3bf3c6..2e01f52 100644
--- a/stgit/stack.py
+++ b/stgit/stack.py
@@ -632,6 +632,15 @@ class Series(StgitObject):
         # fast forward the cloned series to self's top
         new_series.forward_patches(applied)
 
+        # Clone remote and merge settings
+        value = config.get('branch.%s.remote' % self.__name)
+        if value:
+            config.set('branch.%s.remote' % target_series, value)
+
+        value = config.get('branch.%s.merge' % self.__name)
+        if value:
+            config.set('branch.%s.merge' % target_series, value)
+
     def delete(self, force = False):
         """Deletes an stgit series
         """
Previous: Pavel RoskinNext: Pavel Roskin
Message 2 of 4 in “Rename branch section in config when the branch is renamed”
  1. 1/4 Rename branch section in config when the branch is renamedPavel Roskin, Feb 4, 2007
  2. 2/4 Copy remote and merge settings when cloning a branchPavel Roskin, Feb 4, 2007
  3. 3/4 Don't print "rebasing" if the head doesn't changePavel Roskin, Feb 4, 2007
  4. 4/4 Assorted typosPavel Roskin, Feb 4, 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.