patchbomb: pass --git argument to diffstat
authorIdan Kamara <idankk86@gmail.com>
Fri, 20 May 2011 21:04:45 +0300
changeset 14397 0368ad7963be
parent 14396 170747a3e139
child 14398 ae1f7a5373e8
patchbomb: pass --git argument to diffstat
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Fri May 20 21:20:24 2011 +0300
+++ b/hgext/patchbomb.py	Fri May 20 21:04:45 2011 +0300
@@ -106,7 +106,7 @@
         while patchlines and not patchlines[0].strip():
             patchlines.pop(0)
 
-    ds = patch.diffstat(patchlines)
+    ds = patch.diffstat(patchlines, git=opts.get('git'))
     if opts.get('diffstat'):
         body += ds + '\n\n'