sourcegit/src/Commands/Revert.cs

15 lines
353 B
C#
Raw Normal View History

namespace SourceGit.Commands
{
public class Revert : Command
{
public Revert(string repo, string commit, bool autoCommit)
{
WorkingDirectory = repo;
Context = repo;
2021-04-29 05:05:55 -07:00
Args = $"revert {commit} --no-edit";
if (!autoCommit)
Args += " --no-commit";
2021-04-29 05:05:55 -07:00
}
}
}