From: Alan Knowles Date: Wed, 30 Mar 2011 09:33:10 +0000 (+0800) Subject: gitlive.js X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=684ea2110b4d71a3b30092ae1ae5559433436bd7 gitlive.js --- diff --git a/gitlive.js b/gitlive.js index 29bed376..ffe495f1 100644 --- a/gitlive.js +++ b/gitlive.js @@ -42,7 +42,20 @@ if (!GLib.file_test(gitlive, GLib.FileTest.IS_DIR)) { var monitor = new Monitor({ - + /** + * + * queue objects + * action: 'add' | rm | update + * repo : 'gitlive' + * file : XXXXX + * + * + * + * + * + * + */ + action_queue = [], queue : [], queueRunning : false, @@ -202,6 +215,14 @@ var monitor = new Monitor({ return; // always ignore this..? //this.parsePath(src); }, + + /** + * results in git add + git commit.. + * + * + * + */ + onChangesDoneHint : function(src) { this.parsePath(src); @@ -218,6 +239,14 @@ var monitor = new Monitor({ [ src.gitpath, 'commit', src.vpath, { message: src.vpath} ] ); + this.action_queue.push( + { + action: 'add', + repo : src.repo, + file : src.vpath + }) + + return; }