sourcegit/src/Commands/Revert.cs

15 lines
357 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;
2024-07-31 19:02:09 -07:00
Args = $"revert -m 1 {commit} --no-edit";
if (!autoCommit)
2024-07-31 19:02:09 -07:00
Args += " --no-commit";
2021-04-29 05:05:55 -07:00
}
}
}