gitlive.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 30 Mar 2011 09:36:57 +0000 (17:36 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 30 Mar 2011 09:36:57 +0000 (17:36 +0800)
gitlive.js

index 9a84c7f..cd91bd0 100644 (file)
@@ -324,9 +324,16 @@ var monitor = new Monitor({
             return;
         }
         this.lastAdd = new Date();
+        
+        
         this.queue.push( 
             [ src.gitpath, 'commit' ,  src.vpath, { message: src.vpath} ]
         );
+        this.action_queue.push({
+            action: 'update',
+            repo : src.repo,
+            file : src.vpath
+        });
  
     
     },
@@ -356,7 +363,15 @@ var monitor = new Monitor({
             [ src.gitpath, 'commit' ,  src.vpath, dest.vpath ,
                 { message:   'MOVED ' + src.vpath +' to ' + dest.vpath} ]
         );
-         
+        
+        this.action_queue.push({
+            action: 'mv',
+            repo : src.repo,
+            file : src.vpath,
+            target : dest.vpath
+            
+        });
+        
     }