# File lib/grit/blame.rb, line 20
    def process_raw_blame(output)
      lines, final = [], []
      info, commits = {}, {}

      # process the output
      output.split("\n").each do |line|
        if line[0, 1] == "\t"
          lines << line[1, line.size]
        elsif m = /^(\w{40}) (\d+) (\d+)/.match(line)
          if !commits[m[1]]
            commits[m[1]] = @repo.commit(m[1])
          end
          info[m[3].to_i] = [commits[m[1]], m[2].to_i]
        end
      end

      # get it together
      info.sort.each do |lineno, commit|
        final << BlameLine.new(lineno, commit[1], commit[0], lines[lineno - 1])
      end

      @lines = final
    end