namespace SourceGit.Commands { /// /// 应用Patch /// public class Apply : Command { public Apply(string repo, string file, bool ignoreWhitespace, string whitespaceMode) { Cwd = repo; Args = "apply "; if (ignoreWhitespace) Args += "--ignore-whitespace "; else Args += $"--whitespace={whitespaceMode} "; Args += $"\"{file}\""; } } }