 
       contentNode.innerHTML = highlighted if highlighted
 
-  setHunk: (@patch, @index, @status) ->
+  setHunk: (@patch, @index, @status, @git) ->
     @hunk = @patch.hunks()[@index]
     header = @hunk.header()
     headerNode = @createLineNode()


  attachedCallback: ->
    @base = @el.closest('.git-root-view')

    @git = new GitIndex

  createLineNode: ->
    lineNode = document.createElement('div')

    else
      @git.unstagePatch(patch, @patch)

    promise.then =>
      @git.emit('did-update-repository')

module.exports = document.registerElement 'git-hunk-view',
  prototype: HunkView.prototype
