Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/mq.py @ 5025:7041869a1bf6
mq: add qnew --git option
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 28 Jul 2007 20:15:54 +0200 |
parents | 30d4d8985dd8 |
children | 47a8ea1eb2c3 |
line wrap: on
line diff
--- a/hgext/mq.py +++ b/hgext/mq.py @@ -635,7 +635,7 @@ class queue: 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 @@ cmdtable = { (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,