Commit e7b7967
committed
ProjectOptions:
Back in the days when I tried to maintain a Command-Line Interface in
GitGitGadget to replace my `mail-patch-series.sh` script (still
available at https://github.com/dscho/mail-patch-series, it was the
predecessor of GitGitGadget that worked on local repositories instead of
Pull Requests), there was not necessarily a `baseCommit` to work with:
local branches can have an upstream branch (configured via `git branch
--set-upstream-to=<remote>/<branch>`).
But I removed support for this way to call GitGitGadget in 6d397b0
(Remove support for the CLI mode, 2023-12-31), so now there always is a
`baseCommit`.
Let's make it mandatory, so that it can eventually take on the role of
the `upstreamBranch` (which we can then remove).
Since optional parameters must come after non-optional ones, this
unfortunately requires a reordering of the (positional) parameters of
the `ProjectOptions.get()` function.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>baseCommit is actually mandatory1 parent 5402bce commit e7b7967
4 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments