3 Yann Dirson <ydirson@altern.org>
8 stg-branch - stgdesc:branch[]
18 stg branch --create <newstack> [<commit-id>]
20 stg branch --clone [<newstack>]
22 stg branch --rename <oldname> <newname>
24 stg branch --protect [<branch>]
26 stg branch --unprotect [<branch>]
28 stg branch --delete [--force] <branch>
35 Assorted operations on branches.
37 no command, no argument::
38 Display the name of the current branch.
40 no command, one argument::
41 Switch to the named <branch>.
45 Display the list of branches in the current repository,
46 suffixed by the branch description if any, and optionally
47 prefixed by the letter flags 's' if the branch is an StGIT
48 stack, and 'p' if the StGIT stack is protected. The current
49 branch is shown with a leading ">" character.
53 Create a new StGIT stack based at the specified commit, or at
54 the current HEAD if not specified. The repository HEAD is
55 switched to the new stack.
57 StGIT will try to detect the branch off which the new stack is forked,
58 as well as the remote repository from which that parent branch is
59 taken (if any), so running stglink:pull[] will effectively pull new
60 commits from the correct branch. It will warn if it cannot guess the
61 parent branch (eg. if you do not specify a branch name as
65 Clone the current stack, under the name <newstack> if
66 specified, or using the current stack's name suffixed by a
69 The description of the new stack is set to tell it is a clone of the
70 current stack. The parent information of the new stack is copied from
73 Cloning a GIT branch that is not an StGIT stack is similar to creating
74 a new stack off the current branch.
78 Rename the stack named <oldname> to <newname>.
82 Protect the named stack or the current one, preventing
83 further StGIT operations from modifying this stack.
87 Remove a "protected" flag previously set with '--protect'.
90 Delete the named <branch>. If there are any patches left in
91 the series, StGIT will refuse to delete it, unless '--force'
94 A protected branch cannot be deleted, it must be unprotected first
97 When the current branch is deleted, the repository HEAD is switched to
98 the "master" branch if it exists.
100 Branch "master" is treated specially (see bug #8732), in that only the
101 StGIT metadata are removed, the GIT branch itself is not destroyed.
104 Switch current stack between old and new format.
110 Force a delete when the series is not empty.
115 $GIT_DIR/patches/<branch>/description
116 $GIT_DIR/patches/<branch>/protected
118 GIT CONFIGURATION VARIABLES
119 ---------------------------
121 branch.<branchname>.remote
122 branch.<branchname>.merge
123 branch.<branchname>.stgit.parentbranch
127 Part of the StGIT suite - see gitlink:stg[1].