Stefan Haller
cc0b5a2f7f
Cleanup: remove the ignoringWarnings hack from GetMergeBase
...
GetMergeBase is always called with a full ref, so it shouldn't need the
ignoringWarnings hack (which is about ignoring warnings coming from ambiguous
refs).
Also, separate stdout and stderr, which would also have solved the problem. We
no longer really need it now, but it's still cleaner.
2025-07-31 15:21:34 +02:00
jishudashu
630c1720ac
refactor: use slices.Equal to simplify code
...
Signed-off-by: jishudashu <979260390@qq.com >
2025-07-29 11:19:36 +02:00
Stefan Haller
fd270768e8
Instantiate other mutexes by value
...
Like in the previous commit, this is preferred because the fields don't need to
be initialized this way.
2025-06-19 18:39:46 +02:00
Stefan Haller
fd8e480363
Re-determine existing main branches if mainBranches config changed
2024-08-18 10:24:52 +02:00
Stefan Haller
3d6d677453
Store Common instead of just the list of configured main branches in MainBranches
...
This will make it possible to change the configured main branches at runtime.
We'll support this in the next commit.
2024-08-18 10:24:52 +02:00
Stefan Haller
e79b4259e4
Make GetMergeBase a method of ExistingMainBranches
2024-06-03 13:02:46 +02:00
Stefan Haller
f4d922bc80
Factor out CommitLoader.mainBranches into its own class, and store it in Model
2024-06-03 13:02:46 +02:00