sourcegit/src/SourceGit/Commands/Revert.cs

13 lines
336 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";
}
}
}