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

      fileContents += output
    exit = (code) =>
      if code is 0 || options.type is "D"
        @_showRevision(file, editor, branch, fileContents, options)
      else
        atom.notifications.addError "Could not retrieve revision for #{path.basename(file)} (#{code})"

    showArgs = ["show", "#{branch}:./#{path.basename(file)}"]
    process = new BufferedProcess({
      command: "git",
      args: showArgs,

      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)


