projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0199aba
)
gitlive.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 30 Mar 2011 09:33:10 +0000
(17:33 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 30 Mar 2011 09:33:10 +0000
(17:33 +0800)
gitlive.js
patch
|
blob
|
history
diff --git
a/gitlive.js
b/gitlive.js
index
29bed37
..
ffe495f
100644
(file)
--- a/
gitlive.js
+++ b/
gitlive.js
@@
-42,7
+42,20
@@
if (!GLib.file_test(gitlive, GLib.FileTest.IS_DIR)) {
var monitor = new Monitor({
var monitor = new Monitor({
-
+ /**
+ *
+ * queue objects
+ * action: 'add' | rm | update
+ * repo : 'gitlive'
+ * file : XXXXX
+ *
+ *
+ *
+ *
+ *
+ *
+ */
+ action_queue = [],
queue : [],
queueRunning : false,
queue : [],
queueRunning : false,
@@
-202,6
+215,14
@@
var monitor = new Monitor({
return; // always ignore this..?
//this.parsePath(src);
},
return; // always ignore this..?
//this.parsePath(src);
},
+
+ /**
+ * results in git add + git commit..
+ *
+ *
+ *
+ */
+
onChangesDoneHint : function(src)
{
this.parsePath(src);
onChangesDoneHint : function(src)
{
this.parsePath(src);
@@
-218,6
+239,14
@@
var monitor = new Monitor({
[ src.gitpath, 'commit', src.vpath, { message: src.vpath} ]
);
[ src.gitpath, 'commit', src.vpath, { message: src.vpath} ]
);
+ this.action_queue.push(
+ {
+ action: 'add',
+ repo : src.repo,
+ file : src.vpath
+ })
+
+
return;
}
return;
}