Re: [PATCH] diff --no-index: support more than one file pair
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jan 12, 2012, 09:30 UTC
- Message-ID
- <vpqmx9te08z.fsf@bauges.imag.fr>
- In-Reply-To
- <CACsJy8BvA_o1+xrOx4hYhmwNWpsRnh5+mftb471h3yFW2b6vhA@mail.gmail.com>
Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:
> Single operation has its advantages: > > - one pager > - one stat and summary
I buy these, and I understand why they apply to "git diff" and not GNU diff.
> - might be easier to script (just throw them all to xargs)
I don't see a use-case where a command produces old1 new1 old2 new2, but if there is one, then "| xargs -n 2 diff" is the solution. You don't need your patch.
> - hell, i might even benefit from git copy/modify detection
I don't see how, if you specify explicitely the pairs (old, new). You may have such benefit if you let the command-line express "here's a bunch of old files, and a bunch of new ones", but not with your proposed syntax.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/