You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* git-feature: add configurable branch separator
Closes#1069
This allows the use of a separator other than `/` for feature or other
alias branches. While a command-line option has been provided (`-s` or
`--separator`), this will most often be used via
`git-extras.feature.separator`.
* Significant update to bin/git-feature
- Changed option parsing so that `--alias` requires an argument and will
fail with an error unless provided. Applied the same logic to
`--separator`.
- Changed `finish` parsing to capture it as a variable flag during
argument parsing.
This could be extended so that if `finish` is already true, a second
`finish` results in the word being added to the argument list.
```console
$ git feature -- finish remote
$ git feature finish finish remote
```
This has not been done because it is a bit of an inconsistent handling
for documentation purposes.
- Add handling of `--` to permit options or `finish` to be made part of
the feature branch name.
- Since `finish` is now a variable flag, simplify the name-building
logic to always use `concatargs "${argv[@]}"`. This means that
`git feature finish ...` and `git feature ...` behave the same in
terms of feature branch name building.
- Basically rewrote the man page to include better descriptions of the
options as well as adding a GIT CONFIG section and additional EXAMPLES
for the new features/behaviour.
Create or merge the given feature branch\. The feature branch name is made from the \fIPREFIX\fR, the \fISEPARATOR\fR, and the \fINAME\fR joined together\.
20
17
.
21
18
.P
22
-
use \fBbranch_prefix\fRinstead of \fBfeature\fR
19
+
The default \fIPREFIX\fRis \fBfeature\fR and \fISEPARATOR\fR is \fB/\fR, which can be changed (see OPTIONS and GIT CONFIG for details)\.
23
20
.
24
21
.P
25
-
<\-r|\-\-remote [remote_name]>
22
+
The branch \fINAME\fR may be specified as multiple words which will be joined with \fB\-\fR\. If the branch name contains the word \fBfinish\fR or is another OPTION, \fB\-\-\fR should be passed to stop OPTION parsing\. See the EXAMPLES for details\.
Setup a remote tracking branch using \fBremote_name\fR\. If \fBremote_name\fR is not supplied, use \fBorigin\fR by default\.
29
43
.
30
-
.P
31
-
<\-\-from [start_point]>
44
+
.TP
45
+
\fB\-\-from\fR START_POINT:
32
46
.
33
-
.P
34
-
Setup a start point when the branch created\. If \fB\-\-from\fR is not supplied, use the current branch by default\.
47
+
.IP
48
+
Setup a start point when the branch created\. If \fB\-\-from\fR is not supplied, use the current branch by default\. This option will be ignored when \fBfinish\fRing a branch\.
35
49
.
36
-
.P
37
-
<finish>
50
+
.TP
51
+
\fBfinish\fR:
38
52
.
39
-
.P
53
+
.IP
40
54
Merge and delete the feature branch\.
41
55
.
42
-
.P
43
-
<\-\-squash>
56
+
.TP
57
+
\fB\-\-squash\fR:
44
58
.
45
-
.P
46
-
Run a squash merge\.
59
+
.IP
60
+
Run a squash merge when \fBfinish\fRing the feature branch\.
47
61
.
48
-
.P
49
-
<name>
62
+
.TP
63
+
\fINAME\fR:
50
64
.
51
-
.P
65
+
.IP
52
66
The name of the feature branch\.
53
67
.
68
+
.SH "GIT CONFIG"
69
+
You can configure the default branch prefix and separator via git config options\.
0 commit comments