Commit c6768f3
committed
IConfig: remove no longer needed
Ever since 6d397b0 (Remove support for the CLI mode, 2023-12-31), there
is no way the `ProjectOptions` are constructed without a `baseCommit`.
Therefore it is always provided.
And since `baseCommit` is always provided, the `ProjectOptions.get()`
function no longer needs `upstreamBranch`: It only used it in a "is this
rebased?" check that apparently hasn't been called anymore, ever.
So that leaves just one last user of that `upstreamBranch` attribute,
but that's a test that wants to mocj a `prMeta` from a `ProjectOptions`
instance, something that only the CLI mode used to do, but no remaining
production code. That test can easily replace that
`options2.upstreamBranch` with a sensible, hard-coded string.
And since that's gone, we can also remove the `project.branch` attribute
because nothing uses it anymore.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>project.branch
1 parent e7b7967 commit c6768f3
File tree
4 files changed
+4
-39
lines changed- lib
- tests
4 files changed
+4
-39
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | 29 | | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 33 | | |
44 | 34 | | |
45 | 35 | | |
46 | 36 | | |
47 | | - | |
48 | 37 | | |
49 | 38 | | |
50 | 39 | | |
51 | 40 | | |
52 | | - | |
53 | 41 | | |
54 | 42 | | |
55 | 43 | | |
56 | 44 | | |
57 | | - | |
58 | 45 | | |
59 | 46 | | |
60 | 47 | | |
61 | 48 | | |
62 | 49 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 50 | + | |
82 | 51 | | |
83 | 52 | | |
84 | 53 | | |
85 | | - | |
86 | 54 | | |
87 | 55 | | |
88 | 56 | | |
| |||
94 | 62 | | |
95 | 63 | | |
96 | 64 | | |
97 | | - | |
98 | 65 | | |
99 | 66 | | |
100 | 67 | | |
| |||
104 | 71 | | |
105 | 72 | | |
106 | 73 | | |
107 | | - | |
108 | 74 | | |
109 | 75 | | |
110 | 76 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments