code_review: PR #1907

For untracked/added file, `\\ No newline at end of file` will always be added to the end of patch.

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2025-11-10 11:43:28 +08:00
parent f88c424c10
commit 2a99ee670b

View File

@@ -176,7 +176,7 @@ namespace SourceGit.Models
var line = Lines[i];
if (line.Type != TextDiffLineType.Added)
continue;
WriteLine(writer, '+', line);
writer.WriteLine($"+{line.Content}");
}
}