aboutsummaryrefslogtreecommitdiff
path: root/builtin-checkout-index.c
diff options
context:
space:
mode:
authorStephan Beyer <s-beyer@gmx.net>2008-07-13 15:36:15 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-13 14:12:48 -0700
commit1b1dd23f2d6a707b7077cdf6bc6d4055bd0bfb7d (patch)
tree6eb5a6d6bd6e5a6db54f1a43ab7931a196f4f814 /builtin-checkout-index.c
parentd492b31cafe9aa5ce001b1d48815f4c0bb40d01a (diff)
downloadgit-1b1dd23f2d6a707b7077cdf6bc6d4055bd0bfb7d.tar.gz
git-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-checkout-index.c')
-rw-r--r--builtin-checkout-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-checkout-index.c b/builtin-checkout-index.c
index eb1fc9aa6..71ebabf99 100644
--- a/builtin-checkout-index.c
+++ b/builtin-checkout-index.c
@@ -154,7 +154,7 @@ static void checkout_all(const char *prefix, int prefix_length)
}
static const char checkout_cache_usage[] =
-"git-checkout-index [-u] [-q] [-a] [-f] [-n] [--stage=[123]|all] [--prefix=<string>] [--temp] [--] <file>...";
+"git checkout-index [-u] [-q] [-a] [-f] [-n] [--stage=[123]|all] [--prefix=<string>] [--temp] [--] <file>...";
static struct lock_file lock_file;