projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
829977c
)
GitMonitor.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 5 Sep 2014 03:46:22 +0000
(11:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 5 Sep 2014 03:46:22 +0000
(11:46 +0800)
GitMonitor.vala
patch
|
blob
|
history
diff --git
a/GitMonitor.vala
b/GitMonitor.vala
index
3f34ed8
..
9521391
100644
(file)
--- a/
GitMonitor.vala
+++ b/
GitMonitor.vala
@@
-114,11
+114,11
@@
public class GitMonitorQueue : MonitorNamePathDir {
}
return string.joinv("\n",ret);
}
}
return string.joinv("\n",ret);
}
- public static string queueArrayToString(Array<GitMonitorQueue> list{
+ public static string queueArrayToString(Array<GitMonitorQueue> list
)
{
var ret = "";
for(var i =0; i < list.length; i++) {
var ret = "";
for(var i =0; i < list.length; i++) {
- ret += (ret.length > 0 ? ", " : "") + list.i
tem
(i).vname;
+ ret += (ret.length > 0 ? ", " : "") + list.i
ndex
(i).vname;
}
return ret;
}
return ret;
@@
-390,7
+390,8
@@
public class GitMonitor : Monitor
break;
}
}
break;
}
}
- print( "ADD : %s\n", queueArrayToString(add_files));
+ print( "ADD : %s\n", GitMonitorQueue.queueArrayToString(add_files));
+ print( "REMOVE FILES: %s\n", GitMonitorQueue.queueArrayToString(remove_files));
//repo.debug = 1;
// these can fail... at present... as we wildcard stuff.
//repo.debug = 1;
// these can fail... at present... as we wildcard stuff.
@@
-423,8
+424,8
@@
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
);
+ 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
// make sure monitoring is paused so it does not recursively pick up
@@
-682,8
+683,7
@@
public class GitMonitor : Monitor
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);