using System;
namespace SourceGit.Commands {
///
/// 合并分支
///
public class Merge : Command {
private Action handler = null;
public Merge(string repo, string source, string mode, Action onProgress) {
Cwd = repo;
Args = $"merge --progress {source} {mode}";
TraitErrorAsOutput = true;
handler = onProgress;
}
public override void OnReadline(string line) {
handler?.Invoke(line);
}
}
}