mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
14 lines
347 B
C#
14 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}";
|
||
|
}
|
||
|
}
|
||
|
}
|