--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -205,7 +205,8 @@ def patchbomb(ui, repo, *revs, **opts):
commands.export(ui, repo, *revs, **{'output': exportee(patches),
'switch_parent': False,
- 'text': None})
+ 'text': None,
+ 'git': opts.get('git')})
jumbo = []
msgs = []
@@ -322,6 +323,7 @@ cmdtable = {
('', 'bcc', [], 'email addresses of blind copy recipients'),
('c', 'cc', [], 'email addresses of copy recipients'),
('d', 'diffstat', None, 'add diffstat output to messages'),
+ ('g', 'git', None, _('use git extended diff format')),
('f', 'from', '', 'email address of sender'),
('', 'plain', None, 'omit hg patch header'),
('n', 'test', None, 'print messages that would be sent'),
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2887,6 +2887,7 @@ table = {
(export,
[('o', 'output', '', _('print output to file with formatted name')),
('a', 'text', None, _('treat all files as text')),
+ ('g', 'git', None, _('use git extended diff format')),
('', 'switch-parent', None, _('diff against the second parent'))],
_('hg export [-a] [-o OUTFILESPEC] REV...')),
"debugforget|forget":