 
       lineNode.classList.add('staged') if lineOrigin in ['-', '+'] and line.staged
 
-      console.log line.staged || false, oldLine, newLine, lineIndex, content
       oldLineNumber.textContent = oldLine if line.oldLineno() > 0
       newLineNumber.textContent = newLine if line.newLineno() > 0
       lineNode.dataset.lineIndex = lineIndex

    oldLine = oldStart
    newLine = newStart

    console.log 'OMGOMGOMGOMGOMGOMGOMGOMG'
    console.log header
    for line, lineIndex in @hunk.lines
      lineNode              = @createLineNode()
      content               = line.content().split(/[\r\n]/g)[0] # srsly.

    header = "@@ -#{oldStart},#{oldCount} +#{newStart},#{newCount} @@#{context}\n"
    patch = "#{header}#{lines.join("\n")}\n"

    promise = if action is 'stage'
      @gitIndex.stagePatch(patch, @patch.getRaw())
    else
      @gitIndex.unstagePatch(patch, @patch.getRaw())
