sourcegit/src/Commands/CherryPick.cs

14 lines
347 B
C#
Raw Normal View History

2021-04-29 05:05:55 -07:00
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}";
}
}
}