mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
14 lines
357 B
C#
14 lines
357 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class Revert : Command
|
|
{
|
|
public Revert(string repo, string commit, bool autoCommit)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"revert -m 1 {commit} --no-edit";
|
|
if (!autoCommit)
|
|
Args += " --no-commit";
|
|
}
|
|
}
|
|
}
|