mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
13 lines
347 B
C#
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}";
|
|
}
|
|
}
|
|
}
|