 module.exports =
 class GitDiffView
   _.extend @prototype, Subscriber
+  classes: ['git-line-added', 'git-line-modified', 'git-line-removed']
 
   constructor: (@editor) ->
     @gutter = @editor.gutter


  removeDiffs: =>
    if @gutter.hasGitLineDiffs
      @gutter.removeClassFromAllLines('git-line-added git-line-modified git-line-removed')
      @gutter.hasGitLineDiffs = false

  renderDiffs: =>

    for {oldStart, newStart, oldLines, newLines} in hunks
      if oldLines is 0 and newLines > 0
        for row in [newStart...newStart + newLines]
          linesHighlighted |= @gutter.addClassToLine(row - 1, 'git-line-added')
      else if newLines is 0 and oldLines > 0
        linesHighlighted |= @gutter.addClassToLine(newStart - 1, 'git-line-removed')
      else
        for row in [newStart...newStart + newLines]
          linesHighlighted |= @gutter.addClassToLine(row - 1, 'git-line-modified')
    @gutter.hasGitLineDiffs = linesHighlighted
