mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
optimize<WorkingCopy>: do not re-diff when file not changed
This commit is contained in:
parent
aec498e9b0
commit
84ac77971b
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ namespace SourceGit.Views.Widgets {
|
||||||
if (wcFileID == lastWCFileId) return;
|
if (wcFileID == lastWCFileId) return;
|
||||||
lastWCFileId = wcFileID;
|
lastWCFileId = wcFileID;
|
||||||
} else {
|
} else {
|
||||||
lastWCFileId = "";
|
var wcFileID = string.Format("{0}@-1", opt.Path);
|
||||||
|
if (wcFileID == lastWCFileId) return;
|
||||||
|
lastWCFileId = wcFileID;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lastWCFileId = "";
|
lastWCFileId = "";
|
||||||
|
|
Loading…
Reference in a new issue