mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07: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;
|
||||
lastWCFileId = wcFileID;
|
||||
} else {
|
||||
lastWCFileId = "";
|
||||
var wcFileID = string.Format("{0}@-1", opt.Path);
|
||||
if (wcFileID == lastWCFileId) return;
|
||||
lastWCFileId = wcFileID;
|
||||
}
|
||||
} else {
|
||||
lastWCFileId = "";
|
||||
|
|
Loading…
Reference in a new issue