From 13ab3d1eaef144499bcd21687c372c2c7f3dd7b7 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 31 May 2021 10:54:56 +0800 Subject: [PATCH] optimize: do NOT listen changed event on .git/*_HEAD --- src/Models/Watcher.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Models/Watcher.cs b/src/Models/Watcher.cs index 27bb36a3..d1c16927 100644 --- a/src/Models/Watcher.cs +++ b/src/Models/Watcher.cs @@ -175,7 +175,6 @@ namespace SourceGit.Models { } else if (e.Name.StartsWith("refs\\stash", StringComparison.Ordinal)) { updateStashes = DateTime.Now.AddSeconds(.5).ToFileTime(); } else if (e.Name.Equals("HEAD", StringComparison.Ordinal) || - e.Name.EndsWith("_HEAD", StringComparison.Ordinal) || e.Name.StartsWith("refs\\heads\\", StringComparison.Ordinal) || e.Name.StartsWith("refs\\remotes\\", StringComparison.Ordinal)) { updateBranch = DateTime.Now.AddSeconds(.5).ToFileTime();