Re: [BUG] git archive formats and dashdash
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 10, 2009, 22:42 UTC
- Message-ID
- <7vws0u8n99.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20091210222258.GQ4114@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
> On Thu, Dec 10, 2009 at 02:05:39PM -0800, Junio C Hamano <gitster@pobox.com> wrote: >> Good catch. Is this a regression between 1.6.5 and the current code? > > Ah, you version is much shorter. :)
More importantly it would avoid running "archive path --format=zip".
That may be reordered by the current parse-options implementation, and other command line parsers (e.g. "git diff HEAD path --stat") may accept command line in such an order, but I somehow find it utterly wrong. We should prepare ourselves for the (distant) day on which we start enforcing "options then rev then paths" order from the command line.