All of lore.kernel.org
 help / color / mirror / Atom feed
* stg branch -r instructions
@ 2008-03-17 12:14 David Kågedal
  2008-03-17 13:42 ` Karl Hasselström
  0 siblings, 1 reply; 2+ messages in thread
From: David Kågedal @ 2008-03-17 12:14 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: Git Mailing List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-17 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 12:14 stg branch -r instructions David Kågedal
2008-03-17 13:42 ` Karl Hasselström

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.