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

[PATCH 2/4] use "crt_series.get_branch()" instead of "git.get_head_file()"

From
CLChuck Lever <cel@netapp.com>
Date
Nov 14, 2005, 16:50 UTC
Message-ID
<20051114165057.22202.82090.stgit@dexter.citi.umich.edu>
In-Reply-To
<20051114165007.22202.69803.stgit@dexter.citi.umich.edu>
More cleanup to the branch command.
Signed-off-by: Chuck Lever <cel@netapp.com>
---
 stgit/commands/branch.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/stgit/commands/branch.py b/stgit/commands/branch.py
index d85ba69..9bf6cdb 100644
--- a/stgit/commands/branch.py
+++ b/stgit/commands/branch.py
@@ -147,7 +147,7 @@ def func(parser, options, args):
     elif options.protect:
 
         if len(args) == 0:
-            branch_name = git.get_head_file()
+            branch_name = crt_series.get_branch()
         elif len(args) == 1:
             branch_name = args[0]
         else:
@@ -182,7 +182,7 @@ def func(parser, options, args):
     elif options.unprotect:
 
         if len(args) == 0:
-            branch_name = git.get_head_file()
+            branch_name = crt_series.get_branch()
         elif len(args) == 1:
             branch_name = args[0]
         else:
@@ -222,4 +222,4 @@ def func(parser, options, args):
     if len(args) != 0:
         parser.error('incorrect number of arguments')
 
-    print git.get_head_file()
+    print crt_series.get_branch()
Previous: Chuck LeverNext: Chuck Lever
Message 3 of 5 in “StGIT minor clean ups”
  1. 0/4 StGIT minor clean upsChuck Lever, Nov 14, 2005
  2. 1/4 Better error message when renaming patches to same nameChuck Lever, Nov 14, 2005
  3. 2/4 use "crt_series.get_branch()" instead of "git.get_head_file()"Chuck Lever, Nov 14, 2005
  4. 3/4 Fix a typo in "stg pick"Chuck Lever, Nov 14, 2005
  5. 4/4 Fix a typo in the "add" command's documentationChuck Lever, Nov 14, 2005

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.