projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ec9b58
)
GitMonitor.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 25 Aug 2017 05:08:00 +0000
(13:08 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 25 Aug 2017 05:08:00 +0000
(13:08 +0800)
GitMonitor.vala
patch
|
blob
|
history
diff --git
a/GitMonitor.vala
b/GitMonitor.vala
index
2094908
..
ea9e7ce
100644
(file)
--- 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;
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" +
/*
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);
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" :
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));
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;
// make sure monitoring is paused so it does not recursively pick up
// deletions
this.paused = true;