--git revisited (was Re: mq: hg qnew (and the hgignore too?))

Marcin Kasperski Marcin.Kasperski at softax.com.pl
Mon Apr 28 15:57:27 UTC 2008


> Because the diff format has pretty much always been defined as
> whatever GNU patch accepts, and patch doesn't accept git diffs.

This is frequent excuse, but ... I feel the current default is wrong.
Compare:

  [I used --git in spite I should not]

  I send the patch to somebody, he rejects this patch. So I must
  regenerate the diff with correct settings. Some time lost.

  [I did not use --git in spite I should]

  Binary files and permisions are dead lost.

What is more serious?

Note also that a lot of MQ usage scenarios does not require sending
patches at all (changeset editing for the simple example), or allow
for git patches...


IMO it would be best if MQ used --git patches *always*, but provided
separate command to export the patch as old-style GNU patch (warning
about stripped info, if any).



-- 
----------------------------------------------------------------------
| Marcin Kasperski   | 1 woman, 9 months = one baby. But we have
| http://mekk.waw.pl |      1 month, so let's take 9 women!
|                    |        (common management practice)
----------------------------------------------------------------------




More information about the Mercurial mailing list