sourcegit/src/Commands/Revert.cs

14 lines
344 B
C#
Raw Normal View History

2021-04-29 05:05:55 -07:00
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";
}
}
}