optimize<WorkingCopy>: do not re-diff when file not changed

This commit is contained in:
leo 2022-10-28 09:57:50 +08:00
parent aec498e9b0
commit 84ac77971b

View file

@ -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 = "";