sourcegit/src/Commands/CherryPick.cs
2021-04-29 20:05:55 +08:00

13 lines
347 B
C#

namespace SourceGit.Commands {
/// <summary>
/// 遴选命令
/// </summary>
public class CherryPick : Command {
public CherryPick(string repo, string commit, bool noCommit) {
var mode = noCommit ? "-n" : "--ff";
Cwd = repo;
Args = $"cherry-pick {mode} {commit}";
}
}
}