mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
Change the way to show only space or no changes in DiffViewer
This commit is contained in:
parent
e08b7024fc
commit
087b147dd9
4 changed files with 34 additions and 24 deletions
|
@ -223,15 +223,7 @@ namespace SourceGit.Git {
|
|||
rs.Add(current);
|
||||
rs.Fit();
|
||||
|
||||
if (rs.IsBinary) {
|
||||
rs.Blocks.Clear();
|
||||
} else if (rs.Blocks.Count == 0) {
|
||||
var b = new Block();
|
||||
b.Mode = LineMode.Indicator;
|
||||
b.Append("NO CHANGES OR ONLY WHITESPACE CHANGES!!!");
|
||||
rs.Blocks.Add(b);
|
||||
}
|
||||
|
||||
if (rs.IsBinary) rs.Blocks.Clear();
|
||||
return rs;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue