projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89c334
)
gitlive.js
author
Alan Knowles
<alan@wideboy.(none)>
Wed, 28 Apr 2010 14:58:45 +0000
(22:58 +0800)
committer
Alan Knowles
<alan@wideboy.(none)>
Wed, 28 Apr 2010 14:58:45 +0000
(22:58 +0800)
gitlive.js
patch
|
blob
|
history
diff --git
a/gitlive.js
b/gitlive.js
index
0c6972d
..
5eed94b
100644
(file)
--- a/
gitlive.js
+++ b/
gitlive.js
@@
-71,10
+71,24
@@
var monitor = new Monitor({
runQueue: function()
{
var cmd;
+ var success = [];
while (true) {
cmd = array_shift(this.queue);
var sp = Git.run.call(cmd);
+ switch (sp.result) {
+ case 0: // success:
+ success.push(sp.args.join(' '));
+ success.push(sp.output);
+ break;
+ default:
+ failure.push(sp.args.join(' '));
+ failure.push(sp.output);
+ failure.push(sp.stderr);
+
+ }
+
+
if (!this.queue.length) {
break;
}