':type path: str
:type new: bool'

def __init__(self, path, new):

    self.path = path
    self.new = new
    self.prefix = ('+' if self.new else '-')
    self.eof_newline = True
    self.exists = True
    self.lines = []
    self.lines_and_context = []
    self.ranges = []
    self._next_line_number = 0
    self._lines_remaining = 0
    self._range_start = 0
