                 else
                     @setState(git_status : output.stdout)
 
-    update_diff: () =>
+    update_diff : () =>
         @setState(git_diff : 'updating...')
         @exec
             cmd  : "git"

            {<pre>{@props.git_diff}</pre> if @props.git_diff}
        </Panel>

    render : ->
        <div>
            <h2>Git Repository at {@props.git_repo_root}</h2>
            <Row>
                <Col sm=6>
                    {@render_status()}
                </Col>
                <Col sm=6>
                    {@render_diff()}
                </Col>
            </Row>
        </div>

render = (redux, project_id, path) ->

                    console.warn("git editor ERROR exec'ing #{opts.cmd} #{opts.args.join(' ')}")
                opts.cb(err, output)

    commit : (message) =>
        @setState(commit_status : 'commiting...')
        @exec
            cmd  : "git commit -a -m \"#{message}\""
            cb   : (err, output) =>
                if err
                    @setState(git_commit_return : '')
                else
                    @setState(git_commit_return : output.stdout)

    update_status : () =>
        @setState(git_status : 'updating...')
        @exec
            cmd  : "git"
