sourcegit/src/Commands/Revert.cs

11 lines
325 B
C#
Raw Normal View History

namespace SourceGit.Commands {
2021-04-29 05:05:55 -07:00
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";
}
}
}