 
   @FILE_PREFIX = "Git Plus - "
 
-  @showRevision: (editor, branch, options={}) ->
+  @showRevision: (editor, gitRevision, options={}) ->
     options = _.defaults options,
       diff: false
 

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


  @_affixTabTitle: (newTextEditor, branch) ->
    $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(/\@.*/, "@#{branch}")
    else
      titleText += " @#{branch}"
    $tabTitle.text(titleText)



            activateItem: true
            searchAllPanes: false
          promise.then (newTextEditor) =>
            @_updateNewTextEditor(newTextEditor, editor, gitRevision, fileContents)


  @_updateNewTextEditor: (newTextEditor, editor, gitRevision, fileContents) ->
    _.delay =>
      lineEnding = editor.buffer?.lineEndingForRow(0) || "\n"
      fileContents = fileContents.replace(/(\r\n|\n)/g, lineEnding)
