mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
10 lines
328 B
C#
10 lines
328 B
C#
namespace SourceGit.Commands {
|
|
public class CherryPick : Command {
|
|
public CherryPick(string repo, string commit, bool noCommit) {
|
|
var mode = noCommit ? "-n" : "--ff";
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"cherry-pick {mode} {commit}";
|
|
}
|
|
}
|
|
}
|