sourcegit/src/Commands/Revert.cs
2021-04-29 20:05:55 +08:00

13 lines
344 B
C#

namespace SourceGit.Commands {
/// <summary>
/// 撤销提交
/// </summary>
public class Revert : Command {
public Revert(string repo, string commit, bool autoCommit) {
Cwd = repo;
Args = $"revert {commit} --no-edit";
if (!autoCommit) Args += " --no-commit";
}
}
}