start: function() {
var _this = this;
+ this.lastAdd = new Date();
Glib.idle_add(PRIORITY_LOW, function() {
_this.runQueue();
},null,null);
var add_it = false;
if (typeof(this.just_created[src.path]) !='undefined') {
delete this.just_created[src.path];
-
+ this.lastAdd = new Date();
this.queue.push(
[ src.gitpath, 'add', src.vpath ],
[ src.gitpath, 'commit', src.vpath, { message: src.vpath} ],
}
return;
}
-
+ this.lastAdd = new Date();
this.queue.push(
[ src.gitpath, 'add', src.vpath ],
[ src.gitpath, 'commit', src.vpath, { message: src.vpath} ],
// should check if monitor needs removing..
// it should also check if it was a directory.. - so we dont have to commit all..
-
+ this.lastAdd = new Date();
this.queue.push(
[ src.gitpath, 'rm' , src.vpath ],
[ src.gitpath, 'commit', { all: true, message: src.vpath} ],
}
// director has bee created
this.monitor(src.path);
-
+ this.lastAdd = new Date();
this.queue.push(
[ src.gitpath, 'add' , src.vpath, { all: true } ],
[ src.gitpath, 'commit' , { all: true, message: src.vpath} ],
if (this.shouldIgnore(src)) {
return;
}
+ this.lastAdd = new Date();
this.queue.push(
[ src.gitpath, 'commit' , src.vpath, { message: src.vpath} ],
[ src.gitpath, 'push', { all: true } ]
if (this.shouldIgnore(dest)) {
return;
}
+ this.lastAdd = new Date();
this.queue.push(
[ src.gitpath, 'mv', '-k', src.vpath, dest.vpath ],
[ src.gitpath, 'commit' , src.vpath, dest.vpath ,