projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6aef978
)
GitMonitor.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 5 Sep 2014 03:34:50 +0000
(11:34 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 5 Sep 2014 03:34:50 +0000
(11:34 +0800)
GitMonitor.vala
patch
|
blob
|
history
diff --git
a/GitMonitor.vala
b/GitMonitor.vala
index
8558954
..
e8274af
100644
(file)
--- a/
GitMonitor.vala
+++ b/
GitMonitor.vala
@@
-385,8
+385,7
@@
public class GitMonitor : Monitor
//repo.debug = 1;
// these can fail... at present... as we wildcard stuff.
//repo.debug = 1;
// 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.. ??
/*
var remove_files_f = new Array<GitMonitorQueue>();
// make sure added files do not get removed.. ??
/*
var remove_files_f = new Array<GitMonitorQueue>();
@@
-416,7
+415,9
@@
public class GitMonitor : Monitor
add_files_f.append_val(add_files.index(ii));
};
add_files_f.append_val(add_files.index(ii));
};
-
+ print("ADD : %u files\n" , add_files_f.length);
+ print("REMOVE: %u files\n" , remove_files_f.length);
+
// make sure monitoring is paused so it does not recursively pick up
// deletions
// make sure monitoring is paused so it does not recursively pick up
// deletions
@@
-645,7
+646,7
@@
public class GitMonitor : Monitor
this.lastAdd = new DateTime.now(new TimeZone.local());
var cmd_s = new GitMonitorQueue(src);
this.lastAdd = new DateTime.now(new TimeZone.local());
var cmd_s = new GitMonitorQueue(src);
- var cmd_d = new GitMonitorQueue(
src
);
+ var cmd_d = new GitMonitorQueue(
dest
);
if (cmd_d.gitpath != cmd_s.gitpath) {
if (cmd_d.gitpath != cmd_s.gitpath) {
@@
-670,11
+671,12
@@
public class GitMonitor : Monitor
return;
}
return;
}
+
+
cmd_s.action = "rm";
this.queue.append_val(cmd_s);
cmd_s.action = "rm";
this.queue.append_val(cmd_s);
-
-
+
cmd_d.action = "add";
this.queue.append_val(cmd_d);
cmd_d.action = "add";
this.queue.append_val(cmd_d);