sourcegit/src/Commands/FormatPatch.cs

13 lines
326 B
C#
Raw Normal View History

2021-04-29 05:05:55 -07:00
namespace SourceGit.Commands {
/// <summary>
/// 将Commit另存为Patch文件
/// </summary>
public class FormatPatch : Command {
public FormatPatch(string repo, string commit, string path) {
Cwd = repo;
Args = $"format-patch {commit} -1 -o \"{path}\"";
}
}
}