     return "editor-#{project_id}-#{path}"
 
 class GitActions extends Actions
+
     init : (@project_id, @filename) =>
         @path = misc.path_split(@filename).head
         @setState(git_repo_root : @path)
+        @set_tab('configuration')
 
     exec : (opts) =>
         opts = defaults opts,

            ref         = 'commit_message'
            type        = 'text'
            placeholder = 'Commit message'
            onChange    = {=>@setState(commit_message:@refs.commit_message.getValue())}
            onKeyDown   = {@props.actions.commit} />

    render_commit_panel : ->
        head =
            <span>
                git commit -a -m "{@render_commit_message_input()}" 
                <Button
                    onClick  = {@props.actions.commit} >
                    Run
                </Button>
            </span>
        <Panel header={head}>
            {<pre>{@props.git_commit_return}</pre> if @props.git_commit_return}

Git = (name) -> rclass
    reduxProps:
        "#{name}" :
            tab                   : rtypes.string
            git_repo_root         : rtypes.string
            git_user_name         : rtypes.string
            git_user_email        : rtypes.string
            git_user_name_return  : rtypes.string
            git_user_email_return : rtypes.string
            git_commit_return     : rtypes.string
            commit_message        : rtypes.string
            git_status            : rtypes.string
            git_diff              : rtypes.string

    propTypes :
        actions : rtypes.object
