equal
deleted
inserted
replaced
1357 filename = line.split(None, 5)[-1] |
1357 filename = line.split(None, 5)[-1] |
1358 elif line.startswith('+') and not line.startswith('+++'): |
1358 elif line.startswith('+') and not line.startswith('+++'): |
1359 adds += 1 |
1359 adds += 1 |
1360 elif line.startswith('-') and not line.startswith('---'): |
1360 elif line.startswith('-') and not line.startswith('---'): |
1361 removes += 1 |
1361 removes += 1 |
1362 if filename: |
1362 if filename: |
1363 yield (filename, adds, removes) |
1363 yield (filename, adds, removes) |
1364 |
1364 |
1365 def diffstat(lines): |
1365 def diffstat(lines): |
1366 output = [] |
1366 output = [] |
1367 stats = list(diffstatdata(lines)) |
1367 stats = list(diffstatdata(lines)) |