From: Alan Knowles Date: Fri, 5 Sep 2014 03:52:30 +0000 (+0800) Subject: GitMonitor.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=41072f792193f9a7d29f833d5189045a711cffff GitMonitor.vala --- diff --git a/GitMonitor.vala b/GitMonitor.vala index 06e58820..09e2886c 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -679,10 +679,14 @@ public class GitMonitor : Monitor return; } + + 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); @@ -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; + if (GitMonitorQueue.queueHas(cmd_s, "add")) { + cmd.message = cmd_d.vname; + } + this.queue.append_val(cmd);