sourcegit/src/Commands/CherryPick.cs

11 lines
328 B
C#
Raw Normal View History

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