summaryrefslogtreecommitdiff
path: root/builtin-archive.c
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 /builtin-archive.c
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 'builtin-archive.c')
-rw-r--r--builtin-archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-archive.c b/builtin-archive.c
index f9a4bea41e..565314b04c 100644
--- a/builtin-archive.c
+++ b/builtin-archive.c
@@ -71,7 +71,7 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
const char *output = NULL;
const char *remote = NULL;
struct option local_opts[] = {
- OPT_STRING(0, "output", &output, "file",
+ OPT_STRING('o', "output", &output, "file",
"write the archive to this file"),
OPT_STRING(0, "remote", &remote, "repo",
"retrieve the archive from remote repository <repo>"),