sourcegit/src/SourceGit/Commands/CherryPick.cs

13 lines
339 B
C#
Raw Normal View History

namespace SourceGit.Commands
{
public class CherryPick : Command
{
public CherryPick(string repo, string commit, bool noCommit)
{
2021-04-29 05:05:55 -07:00
var mode = noCommit ? "-n" : "--ff";
WorkingDirectory = repo;
Context = repo;
2021-04-29 05:05:55 -07:00
Args = $"cherry-pick {mode} {commit}";
}
}
}