       {type: line[1], path: line[2]}
 
   getFilterKey: -> 'path'
+
+  show: ->
+    @panel ?= atom.workspace.addModalPanel(item: this)
+    @panel.show()
+
+  cancelled: -> @hide()
+
+  hide: ->
+    @panel?.hide()
 
   viewForItem: ({type, path}) ->
     getIcon = (s) ->

{$$, SelectListView} = require 'atom'

git = require '../git'
GitDiff = require '../models/git-diff'


  initialize: (@data, @onlyCurrentFile) ->
    super
    @show()
    @branch = @data[0]
    @setItems @parseData @data[...-1]

    @focusFilterEditor()

  parseData: (files) ->
