mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
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:
@@ -176,7 +176,7 @@ namespace SourceGit.Models
|
||||
var line = Lines[i];
|
||||
if (line.Type != TextDiffLineType.Added)
|
||||
continue;
|
||||
WriteLine(writer, '+', line);
|
||||
writer.WriteLine($"+{line.Content}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user