projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73c5c68
)
gitlive.js
author
Alan Knowles
<alan@akbkhome.com>
Sat, 17 Sep 2011 05:33:19 +0000
(13:33 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sat, 17 Sep 2011 05:33:19 +0000
(13:33 +0800)
gitlive.js
patch
|
blob
|
history
diff --git
a/gitlive.js
b/gitlive.js
index
3875770
..
3a608c0
100644
(file)
--- a/
gitlive.js
+++ b/
gitlive.js
@@
-126,15
+126,17
@@
var monitor = new Monitor({
var add_files = [];
repo.cmds.forEach(function(cmd) {
var name = cmd.shift();
+ var arg = cmd.shift();
switch(name) {
case 'add' :
- add_files.push(cmd.shift());
+ if (add_files.indexOf(arg) > -1) break;
+ add_files.push(arg);
break;
case 'rm':
- remove_files.push(
cmd.shift()
);
+ remove_files.push(
arg
);
break;
case 'commit' :
- messages.push(
cmd.shift().message
)
+ messages.push(
arg
)
}