From 00039b69a5991f423826f4d1ceea2127265650a3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 25 Aug 2017 13:08:00 +0800 Subject: [PATCH] GitMonitor.vala --- GitMonitor.vala | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/GitMonitor.vala b/GitMonitor.vala index 20949083..ea9e7ce2 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -39,6 +39,10 @@ public class GitMonitorQueue : MonitorNamePathDir { this.vdir = string.joinv("/", vpath); this.vname = this.vdir + (this.vdir.length > 0 ? "/" : "") + this.name; + + + + /* stdout.printf( "NEW GitMonitorQueue\nname: %s\npath: %s\ndir: %s\n" + @@ -426,6 +430,10 @@ public class GitMonitor : Monitor for(var ii = 0;ii < repo.cmds.length;ii++) { var cmd = repo.cmds.index(ii); + if (repo.is_ignore(cmd.vname)) { + continue; + } + switch(cmd.action) { case "add" : @@ -510,8 +518,7 @@ public class GitMonitor : Monitor print( "ADD : %s\n", GitMonitorQueue.queueArrayToString(add_files_f)); print( "REMOVE FILES: %s\n", GitMonitorQueue.queueArrayToString(remove_files_f)); - - + // make sure monitoring is paused so it does not recursively pick up // deletions this.paused = true; -- 2.39.2