summaryrefslogtreecommitdiff
path: root/builtin/checkout-index.c
diff options
context:
space:
mode:
authorŠtěpán Němec <stepan.nemec@gmail.com>2010-10-08 17:31:20 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-10-08 19:31:08 (GMT)
commitd0bb13663000be47d83cbe53b6c4bdc8835625cb (patch)
tree89d9f13030543ba19c8d68214ce5f9097e14fca4 /builtin/checkout-index.c
parent884220653f2abd381d94c5902e4cb0f237504d03 (diff)
downloadgit-d0bb13663000be47d83cbe53b6c4bdc8835625cb.zip
git-d0bb13663000be47d83cbe53b6c4bdc8835625cb.tar.gz
git-d0bb13663000be47d83cbe53b6c4bdc8835625cb.tar.bz2
Fix {update,checkout}-index usage strings
The `<file>' argument is optional in both cases (the man pages are already correct). Signed-off-by: Štěpán Němec <stepnem@gmail.com> Acked-by: Jonathan Nieder <jrnieder@gmail.com> 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 a7a5ee1..65cbee0 100644
--- a/builtin/checkout-index.c
+++ b/builtin/checkout-index.c
@@ -155,7 +155,7 @@ static void checkout_all(const char *prefix, int prefix_length)
}
static const char * const builtin_checkout_index_usage[] = {
- "git checkout-index [options] [--] <file>...",
+ "git checkout-index [options] [--] [<file>...]",
NULL
};