Re: [PATCH 1/2] git-archive: add '-o' as a alias for '--output'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 13, 2009, 18:34 UTC
- Message-ID
- <7v4or6sngc.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1252863407-2598-1-git-send-email-dpotapov@gmail.com>
Dmitry Potapov <dpotapov@gmail.com> writes:
Show 19 quoted lines
> The '-o' option is commonly used in many tools to specify the output file. > Typing '--output' every time is a bit too long to be a practical alternative > to redirecting output. But specifying the output name has the advantage of > making possible to guess the desired output format by filename extension. > > Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> > --- > ... > diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt > index 92444dd..f7a3b95 100644 > --- a/Documentation/git-archive.txt > +++ b/Documentation/git-archive.txt > @@ -48,6 +48,7 @@ OPTIONS > --prefix=<prefix>/:: > Prepend <prefix>/ to each filename in the archive. > > +-o:: > --output=<file>:: > Write the archive to <file> instead of stdout.
I think this patch is very reasonable, except for this hunk, which would want to say "-o <file>::" instead. I'll see if there are comments from others and if there is none, apply this patch with that minor tweak.
Thanks.