Comments
Patch
@@ -1180,6 +1180,8 @@ class queue(object):
if date:
date = util.parsedate(date)
diffopts = self.diffopts({'git': opts.get('git')})
+ if diffopts.git:
+ diffopts.text = True
if opts.get('checkname', True):
self.checkpatchname(patchfn)
inclsubs = checksubstate(repo)
@@ -2609,6 +2611,8 @@ def new(ui, repo, patch, *args, **opts):
msg = cmdutil.logmessage(ui, opts)
q = repo.mq
opts['msg'] = msg
+ if opts['git']:
+ opts['text'] = True
setupheaderopts(ui, opts)
q.new(repo, patch, *args, **opts)
q.savedirty()