mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
feature: merge multiple heads (#793)
* feature: allow merging multiple heads * feature: allow merging multiple branches from branch tree
This commit is contained in:
parent
c9c7fb5d5b
commit
dce33fdf60
11 changed files with 232 additions and 10 deletions
|
@ -4,13 +4,15 @@ namespace SourceGit.Commands
|
|||
{
|
||||
public class Merge : Command
|
||||
{
|
||||
public Merge(string repo, string source, string mode, Action<string> outputHandler)
|
||||
public Merge(string repo, string source, string mode, string strategy, Action<string> outputHandler)
|
||||
{
|
||||
_outputHandler = outputHandler;
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
TraitErrorAsOutput = true;
|
||||
Args = $"merge --progress {source} {mode}";
|
||||
if (strategy != null)
|
||||
strategy = string.Concat("--strategy=", strategy);
|
||||
Args = $"merge --progress {strategy} {source} {mode}";
|
||||
}
|
||||
|
||||
protected override void OnReadline(string line)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue