this.commit_all = false;
- var vpath_ar = this.path.substring(gitlive.length +1).split('/', 0);
+ var vpath_ar = this.path.substring(GitMonitor.gitlive.length +1).split('/', 0);
this.gitpath = gitlive + '/' + vpath_ar[0];
try {
var notification = new Notify.Notification({
"Git Live",
- this.gitlive + "\nMonitoring " + _this.monitors.length + " Directories",
+ GitMonitor.gitlive + "\nMonitoring " + _this.monitors.length + " Directories",
"dialog-information"
});
this.lastAdd = new DateTime.now();
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src, GitMonitor.gitlive);
if (cmd.shouldIgnore()) {
return;
}
cmd.add = src.vpath;
this.queue.append_val(cmd);
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src);
cmd.action = "commit";
cmd.message = src.vpath;
this.queue.append_val(cmd);
return true;
}
this.lastAdd = new DateTime.now();
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src);
if (cmd.shouldIgnore()) {
return;
}
cmd.rm = src.vpath;
this.queue.append_val(cmd);
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src);
cmd.action = "commit";
cmd.message = src.vpath;
cmd.commit_all = true;
return true;
}
this.lastAdd = new DateTime.now();
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src);
if (cmd.shouldIgnore()) {
return;
}
return true;
}
this.lastAdd = new DateTime.now();
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src);
if (cmd.shouldIgnore()) {
return;
}
cmd.add = src.vpath;
this.queue.append_val(cmd);
- var cmd = new GitMontitorQueue(src, this.gitlive);
+ var cmd = new GitMontitorQueue(src);
cmd.action = "commit";
cmd.message = "Attribute changed " + cmd.vpath;
this.queue.append_val(cmd);
public void onMoved(MonitorNamePathDir src,MonitorNamePathDir dest) { }
{
this.lastAdd = new DateTime.now();
- var cmd_s = new GitMontitorQueue(src, this.gitlive);
+ var cmd_s = new GitMontitorQueue(src);
- var cmd_d = new GitMontitorQueue(src, this.gitlive);
+ var cmd_d = new GitMontitorQueue(src);
if (cmd_d.gitpath != cmd_s.gitpath) {
this.queue.append_val(cmd_d);
- var cmd = new GitMontitorQueue(dest, this.gitlive);
+ var cmd = new GitMontitorQueue(dest);
cmd.action = "commit";
cmd.message = "MOVED " + cmd_s.vpath + " to " + cmd_d.vpath;
this.queue.append_val(cmd);