           @span class: 'branch-label', outlet: 'branchLabel'
         @span outlet: 'cursorPosition'
 
+  git: null
+
   initialize: (@rootView, @editor) ->
     @updatePathText()
     @editor.on 'editor-path-change', =>

    @branchArea.hide()
    return unless path

    head = new Git(path).getShortHead()
    @branchLabel.text(head)
    @branchArea.show() if head


    @gitStatusIcon.empty()
    return unless path

    if @git.isPathModified(path)
      @gitStatusIcon.append $$ -> @span '\uf26d', class: 'modified-status-icon'
    else if @git.isPathNew(path)
      @gitStatusIcon.append $$ -> @span '\uf26b', class: 'new-status-icon'


