chiark / gitweb /
Rudimentary support for multiple development branches
authorChuck Lever <cel@netapp.com>
Thu, 6 Oct 2005 12:56:42 +0000 (13:56 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Thu, 6 Oct 2005 12:56:42 +0000 (13:56 +0100)
commit7b1ba1a6f8c89f551377b3b3791bfee7b01d3350
treed16b4bb1b1391a34c6dc26e799be9d106aad111e
parent94b7894d7cbbbe5c1350a198727f88c51f3cd4de
Rudimentary support for multiple development branches

 stg branch

   show the name of the current branch.

 stg branch <branch-name>

   switch to the named branch.  after the switch is complete,
   all currently applied patches in the target branch are
   applied.

 stg branch --create <branch-name> [ <commit-sha1> ]

   create a new branch.  if <commit-sha1> is not specified then
   the branch is created starting at the commit pointed to by
   the current HEAD.  otherwise, the branch is created starting
   at the given commit.

   when the branch creation completes, the new branch becomes
   the current branch.

 stg branch --delete [ <branch-name> ]

   delete a branch and all patches it contains.  if no name is
   specified, delete the current branch and switch to the
   "master" branch.  otherwise, delete the named branch.

 stg branch --list

   list all the development branches in the current repository
   along with their descriptions and status.

 stg branch --rename <from-branch-name> <to-branch-name>

   rename a branch, and switch to the new name.

 stg branch -h

   print a synopsis of the "stg branch" command.

Signed-off-by: Chuck Lever <cel@netapp.com>
stgit/commands/branch.py [new file with mode: 0644]
stgit/main.py