             activateItem: true
             searchAllPanes: false
           promise.then (newTextEditor) =>
-            @_updateNewTextEditor(newTextEditor, editor, branch, fileContents)
+            @_updateNewTextEditor(newTextEditor, editor, gitRevision, fileContents)
 
 
-  @_updateNewTextEditor: (newTextEditor, editor, branch, fileContents) ->
+  @_updateNewTextEditor: (newTextEditor, editor, gitRevision, fileContents) ->
     _.delay =>
       lineEnding = editor.buffer?.lineEndingForRow(0) || "\n"
       fileContents = fileContents.replace(/(\r\n|\n)/g, lineEnding)

      return lineNumber - 5


  @_showRevision: (file, editor, branch, fileContents, options={}) ->
    outputDir = "#{atom.getConfigDirPath()}/git-plus"
    fs.mkdir outputDir if not fs.existsSync outputDir
    outputFilePath = "#{outputDir}/#{@FILE_PREFIX}#{path.basename(file)}"

      newTextEditor.buffer.cachedDiskContents = fileContents
      @_splitDiff(editor, newTextEditor)
      @_syncScroll(editor, newTextEditor)
      @_affixTabTitle newTextEditor, gitRevision
    , 300


  @_affixTabTitle: (newTextEditor, gitRevision) ->
    $el = $(atom.views.getView(newTextEditor))
    $tabTitle = $el.parents('atom-pane').find('li.tab.active .title')
    titleText = $tabTitle.text()
    if titleText.indexOf('@') >= 0
      titleText = titleText.replace(/\@.*/, "@#{gitRevision}")
    else
      titleText += " @#{gitRevision}"
    $tabTitle.text(titleText)


