mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
optimize<WorkingCopy>: do not re-diff when file not changed
This commit is contained in:
@@ -69,7 +69,9 @@ namespace SourceGit.Views.Widgets {
|
||||
if (wcFileID == lastWCFileId) return;
|
||||
lastWCFileId = wcFileID;
|
||||
} else {
|
||||
lastWCFileId = "";
|
||||
var wcFileID = string.Format("{0}@-1", opt.Path);
|
||||
if (wcFileID == lastWCFileId) return;
|
||||
lastWCFileId = wcFileID;
|
||||
}
|
||||
} else {
|
||||
lastWCFileId = "";
|
||||
|
||||
Reference in New Issue
Block a user