From: Alan Knowles Date: Fri, 5 Sep 2014 03:25:31 +0000 (+0800) Subject: GitMonitor.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=70249fb68f916b04da947de60158da8822e842d8 GitMonitor.vala --- diff --git a/GitMonitor.vala b/GitMonitor.vala index c5002481..f0927f23 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -338,6 +338,7 @@ public class GitMonitor : Monitor var repo = repo_list.index(i); var add_files = new Array(); + var add_files_f = new Array(); var remove_files = new Array(); var messages = new Array(); //print(JSON.stringify(repo.cmds,null,4)); @@ -386,8 +387,8 @@ public class GitMonitor : Monitor // these can fail... at present... as we wildcard stuff. stdout.printf("ADD : %u files\n" , add_files.length); - // make sure added files do not get removed.. - + // make sure added files do not get removed.. ?? + /* var remove_files_f = new Array(); for(var ii = 0;ii < remove_files.length;ii++) { if (GitMonitorQueue.indexOfAdd(add_files, remove_files.index(ii).vname) > -1 ) { @@ -396,7 +397,11 @@ public class GitMonitor : Monitor remove_files_f.append_val(remove_files.index(ii)); }; stdout.printf("REMOVE : %u files\n" , remove_files_f.length); - + */ + + // if file was added, then removed, + + // make sure monitoring is paused so it does not recursively pick up // deletions try {