equal
deleted
inserted
replaced
2804 removes += 1 |
2804 removes += 1 |
2805 elif (line.startswith('GIT binary patch') or |
2805 elif (line.startswith('GIT binary patch') or |
2806 line.startswith('Binary file')): |
2806 line.startswith('Binary file')): |
2807 isbinary = True |
2807 isbinary = True |
2808 elif line.startswith('rename from'): |
2808 elif line.startswith('rename from'): |
2809 filename = line.split()[-1] |
2809 filename = line[12:] |
2810 elif line.startswith('rename to'): |
2810 elif line.startswith('rename to'): |
2811 filename += ' => %s' % line.split()[-1] |
2811 filename += ' => %s' % line[10:] |
2812 addresult() |
2812 addresult() |
2813 return results |
2813 return results |
2814 |
2814 |
2815 def diffstat(lines, width=80): |
2815 def diffstat(lines, width=80): |
2816 output = [] |
2816 output = [] |