mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 05:05:00 +00:00
20 lines
576 B
C#
20 lines
576 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class CherryPick : Command
|
|
{
|
|
public CherryPick(string repo, string commits, bool noCommit, bool appendSourceToMessage, string extraParams)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
|
|
Args = "cherry-pick ";
|
|
if (noCommit)
|
|
Args += "-n ";
|
|
if (appendSourceToMessage)
|
|
Args += "-x ";
|
|
if (!string.IsNullOrEmpty(extraParams))
|
|
Args += $"{extraParams} ";
|
|
Args += commits;
|
|
}
|
|
}
|
|
}
|