From: "David Kågedal" <davidk@lysator.liu.se>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: stg branch -r instructions
Date: Mon, 17 Mar 2008 13:14:07 +0100 [thread overview]
Message-ID: <87d4ptczu8.fsf@lysator.liu.se> (raw)
It isn't easy to figure out how to rename a branch in stg from looking
at the help texts.
Usage: stg branch [options] branch-name [commit-id]
...
-r, --rename rename an existing development branch
So, how do I rename branch A to B?
Reading the source, it appears that you write
stg branch -r A B
so, the usage string is wrong. In fact, the described usage string is
only for the default action to create a new branch.
The optparse library doesn't really make it easy to describe these
kinds of options-as-subcommands, so I don't have a patch to fix it
right away. I'm not even sure how the result should look.
Maybe it would have been better to have separate stg subcommands?
stg branch NAME [COMMIT]
stg list-branches
stg rename-branch OLD NEW
... etc ...
--
David Kågedal
next reply other threads:[~2008-03-17 12:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 12:14 David Kågedal [this message]
2008-03-17 13:42 ` stg branch -r instructions Karl Hasselström
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=87d4ptczu8.fsf@lysator.liu.se \
--to=davidk@lysator.liu.se \
--cc=catalin.marinas@gmail.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