Git development
 help / color / mirror / Atom feed
From: Chuck Lever <cel@netapp.com>
To: git@vger.kernel.org
Subject: [PATCH 2/4] use "crt_series.get_branch()" instead of "git.get_head_file()"
Date: Mon, 14 Nov 2005 11:50:57 -0500	[thread overview]
Message-ID: <20051114165057.22202.82090.stgit@dexter.citi.umich.edu> (raw)
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()

  parent reply	other threads:[~2005-11-14 16:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 16:50 [PATCH 0/4] StGIT minor clean ups Chuck Lever
2005-11-14 16:50 ` [PATCH 1/4] Better error message when renaming patches to same name Chuck Lever
2005-11-14 16:50 ` Chuck Lever [this message]
2005-11-14 16:50 ` [PATCH 3/4] Fix a typo in "stg pick" Chuck Lever
2005-11-14 16:51 ` [PATCH 4/4] Fix a typo in the "add" command's documentation Chuck Lever

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051114165057.22202.82090.stgit@dexter.citi.umich.edu \
    --to=cel@netapp.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox