summaryrefslogtreecommitdiff
path: root/builtin-cat-file.c
diff options
context:
space:
mode:
authorLibravatar Stephan Beyer <s-beyer@gmx.net>2008-07-13 15:36:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-07-13 14:12:48 -0700
commit1b1dd23f2d6a707b7077cdf6bc6d4055bd0bfb7d (patch)
tree6eb5a6d6bd6e5a6db54f1a43ab7931a196f4f814 /builtin-cat-file.c
parentt/: Use "test_must_fail git" instead of "! git" (diff)
downloadtgif-1b1dd23f2d6a707b7077cdf6bc6d4055bd0bfb7d.tar.xz
Make usage strings dash-less
When you misuse a git command, you are shown the usage string. But this is currently shown in the dashed form. So if you just copy what you see, it will not work, when the dashed form is no longer supported. This patch makes git commands show the dash-less version. For shell scripts that do not specify OPTIONS_SPEC, git-sh-setup.sh generates a dash-less usage string now. Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-cat-file.c')
-rw-r--r--builtin-cat-file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-cat-file.c b/builtin-cat-file.c
index 880e75af5e..7441a56acd 100644
--- a/builtin-cat-file.c
+++ b/builtin-cat-file.c
@@ -202,8 +202,8 @@ static int batch_objects(int print_contents)
}
static const char * const cat_file_usage[] = {
- "git-cat-file [-t|-s|-e|-p|<type>] <sha1>",
- "git-cat-file [--batch|--batch-check] < <list_of_sha1s>",
+ "git cat-file [-t|-s|-e|-p|<type>] <sha1>",
+ "git cat-file [--batch|--batch-check] < <list_of_sha1s>",
NULL
};