                     @setState(git_diff : '')
                 else
                     @setState(git_diff : output.stdout)
+                    
+    update_log : () =>
+        @setState(git_log : 'updating...')
+        @exec
+            cmd  : "git"
+            args : ['log', '-20']
+            cb   : (err, output) =>
+                if err
+                    @setState(git_log : '')
+                else
+                    @setState(git_log : output.stdout)
 
     set_tab : (tab) =>
         @setState(tab:tab)

                </Col>
            </Row>
        </div>

    render : ->
        <div>

             title="Commit" tip="This tab lists all ">
            <span>
                <Octicon name="git-commit"/> Commit
            </span>
        </Tip>
        
    render_log_header : ->
        <Tip delayShow=1300
             title="Log" tip="This tab lists all ">
            <span>
                <Octicon name="history"/> Log
            </span>
        </Tip>

