                 else
                     @setState(git_status : output.stdout)
 
-    update_diff : () =>
+    update_diff : =>
+        store = @redux.getStore(@name)
+        
+        if store
+            console.log('file to diff',store.get('file_to_diff'))
+            args = if store.get('file_to_diff') then ['diff', store.get('file_to_diff')] else ['diff']
+        else
+            args = ['diff']
         @setState(git_diff : 'updating...')
         @exec
             cmd  : "git"
-            args : ['diff']
+            args : args
             cb   : (err, output) =>
                 if err
                     @setState(git_diff : '')

###

{React, ReactDOM, rclass, rtypes, Redux, Actions, Store}  = require('./smc-react')
{Button, Input, Form, Panel, Row, Col, Tabs, Tab} = require('react-bootstrap')
{Icon, Octicon, Space, Tip} = require('./r_misc')
{salvus_client} = require('./salvus_client')
misc = require('smc-util/misc')

            git_changed_tracked_files : rtypes.array
            git_changed_untracked_files : rtypes.array
            checked_files : rtypes.object
            file_to_diff          : rtypes.string

    propTypes :
        actions : rtypes.object
