sourcegit/src/Commands/FormatPatch.cs
2025-05-30 17:12:56 +08:00

13 lines
350 B
C#

namespace SourceGit.Commands
{
public class FormatPatch : Command
{
public FormatPatch(string repo, string commit, string saveTo)
{
WorkingDirectory = repo;
Context = repo;
Editor = EditorType.None;
Args = $"format-patch {commit} -1 --output=\"{saveTo}\"";
}
}
}