mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
14 lines
344 B
C#
14 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";
|
||
|
}
|
||
|
}
|
||
|
}
|