projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3aeae03
)
GitMonitor.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 5 Sep 2014 03:52:30 +0000
(11:52 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 5 Sep 2014 03:52:30 +0000
(11:52 +0800)
GitMonitor.vala
patch
|
blob
|
history
diff --git
a/GitMonitor.vala
b/GitMonitor.vala
index
06e5882
..
09e2886
100644
(file)
--- a/
GitMonitor.vala
+++ b/
GitMonitor.vala
@@
-679,10
+679,14
@@
public class GitMonitor : Monitor
return;
}
return;
}
+
+
print("RM: %s\n", cmd_s.vname);
cmd_s.action = "rm";
this.queue.append_val(cmd_s);
print("RM: %s\n", cmd_s.vname);
cmd_s.action = "rm";
this.queue.append_val(cmd_s);
+
+
print("ADD: %s\n", cmd_d.vname);
cmd_d.action = "add";
this.queue.append_val(cmd_d);
print("ADD: %s\n", cmd_d.vname);
cmd_d.action = "add";
this.queue.append_val(cmd_d);
@@
-691,6
+695,10
@@
public class GitMonitor : Monitor
var cmd = new GitMonitorQueue(dest);
cmd.action = "commit";
cmd.message = "MOVED " + cmd_s.vname + " to " + cmd_d.vname;
var cmd = new GitMonitorQueue(dest);
cmd.action = "commit";
cmd.message = "MOVED " + cmd_s.vname + " to " + cmd_d.vname;
+ if (GitMonitorQueue.queueHas(cmd_s, "add")) {
+ cmd.message = cmd_d.vname;
+ }
+
this.queue.append_val(cmd);
this.queue.append_val(cmd);