mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
feature: cherry-pick multiple commits (#418)
This commit is contained in:
parent
b2bbbb191c
commit
ce2340456e
11 changed files with 138 additions and 39 deletions
|
@ -2,12 +2,12 @@
|
|||
{
|
||||
public class CherryPick : Command
|
||||
{
|
||||
public CherryPick(string repo, string commit, bool noCommit)
|
||||
public CherryPick(string repo, string commits, bool noCommit)
|
||||
{
|
||||
var mode = noCommit ? "-n" : "--ff";
|
||||
WorkingDirectory = repo;
|
||||
Context = repo;
|
||||
Args = $"cherry-pick {mode} {commit}";
|
||||
Args = $"cherry-pick {mode} {commits}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue