mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-17 16:34:59 +00:00
15 lines
455 B
C#
15 lines
455 B
C#
namespace SourceGit.Commands {
|
|
/// <summary>
|
|
/// 应用Patch
|
|
/// </summary>
|
|
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}\"";
|
|
}
|
|
}
|
|
}
|