From 53eca6e84898cf856de55c89e64731af6822d3d6 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 13 Mar 2011 22:26:01 +0000 Subject: [PATCH] [watcher] ignore files in .git/ --- SparkleLib/SparkleRepo.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SparkleLib/SparkleRepo.cs b/SparkleLib/SparkleRepo.cs index 76af6845..27bab4e0 100644 --- a/SparkleLib/SparkleRepo.cs +++ b/SparkleLib/SparkleRepo.cs @@ -507,6 +507,9 @@ namespace SparkleLib { // Starts a timer when something changes private void OnFileActivity (object o, FileSystemEventArgs fse_args) { + + if (fse_args.Name.StartsWith (".git/")) + return; WatcherChangeTypes wct = fse_args.ChangeType;