From: Alan Knowles Date: Fri, 25 Aug 2017 05:08:00 +0000 (+0800) Subject: GitMonitor.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=00039b69a5991f423826f4d1ceea2127265650a3 GitMonitor.vala --- 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;