aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-archive.txt
diff options
context:
space:
mode:
authorDmitry Potapov <dpotapov@gmail.com>2009-09-13 16:05:52 +0400
committerJunio C Hamano <gitster@pobox.com>2009-09-13 13:23:40 -0700
commit05d3951ec9c531d348fe0dbb9ae058d38728a550 (patch)
tree8c18a99101e7df2fa7c4342e27c071e3895a6027 /Documentation/git-archive.txt
parent98df233e2d7d815b1f2e2e253b9d6c6ce1bfe58f (diff)
downloadgit-05d3951ec9c531d348fe0dbb9ae058d38728a550.tar.gz
git-archive: add '-o' as a alias for '--output'
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-archive.txt')
-rw-r--r--Documentation/git-archive.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt
index 92444ddf10..1917f2e8a8 100644
--- a/Documentation/git-archive.txt
+++ b/Documentation/git-archive.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git archive' [--format=<fmt>] [--list] [--prefix=<prefix>/] [<extra>]
- [--output=<file>] [--worktree-attributes]
+ [-o | --output=<file>] [--worktree-attributes]
[--remote=<repo> [--exec=<git-upload-archive>]] <tree-ish>
[path...]
@@ -48,6 +48,7 @@ OPTIONS
--prefix=<prefix>/::
Prepend <prefix>/ to each filename in the archive.
+-o <file>::
--output=<file>::
Write the archive to <file> instead of stdout.