From d1e58b6b8993c5a5a7f555323b85820a9ca09963 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Sat, 28 Jun 2008 22:14:27 +0200 Subject: force -p1 for diffstat generation --- patchtracker/Patch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'patchtracker') diff --git a/patchtracker/Patch.py b/patchtracker/Patch.py index c398694..c79f95c 100644 --- a/patchtracker/Patch.py +++ b/patchtracker/Patch.py @@ -6,13 +6,13 @@ from glob import glob class Diffstat: def __init__(self, patch): self.patch = patch - i,o = os.popen2("diffstat") + i,o = os.popen2("diffstat -p1") i.write(str(patch)) i.close() self.output = o.readlines() def stats(self): - i,o = os.popen2("diffstat -t") + i,o = os.popen2("diffstat -p1 -t") i.write(str(self.patch)) i.close() o.readline() -- cgit v1.2.3