mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-04 22:47:19 -08:00
13 lines
342 B
C#
13 lines
342 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class CherryPick : Command
|
|
{
|
|
public CherryPick(string repo, string commits, bool noCommit)
|
|
{
|
|
var mode = noCommit ? "-n" : "--ff";
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"cherry-pick {mode} {commits}";
|
|
}
|
|
}
|
|
}
|