mq: add qnew --git option
authorPatrick Mezard <pmezard@gmail.com>
Sat, 28 Jul 2007 20:15:54 +0200
changeset 5025 7041869a1bf6
parent 5024 7963438881f5
child 5026 48ebd6a83994
mq: add qnew --git option
hgext/mq.py
--- a/hgext/mq.py	Fri Jul 27 14:30:20 2007 -0700
+++ b/hgext/mq.py	Sat Jul 28 20:15:54 2007 +0200
@@ -635,7 +635,7 @@
             r = self.qrepo()
             if r: r.add([patch])
             if commitfiles:
-                self.refresh(repo, short=True)
+                self.refresh(repo, short=True, git=opts.get('git'))
             self.removeundo(repo)
         finally:
             del wlock
@@ -2183,6 +2183,7 @@
         (new,
          [('e', 'edit', None, _('edit commit message')),
           ('f', 'force', None, _('import uncommitted changes into patch')),
+          ('g', 'git', None, _('use git extended diff format')),
           ('I', 'include', [], _('include names matching the given patterns')),
           ('X', 'exclude', [], _('exclude names matching the given patterns')),
           ] + commands.commitopts,