From: Štěpán Němec Date: Fri, 8 Oct 2010 17:31:20 +0000 (+0200) Subject: Fix {update,checkout}-index usage strings X-Git-Tag: v1.7.3.2~1^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d0bb13663000be47d83cbe53b6c4bdc8835625cb;p=git.git Fix {update,checkout}-index usage strings The `' argument is optional in both cases (the man pages are already correct). Signed-off-by: Štěpán Němec Acked-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/builtin/checkout-index.c b/builtin/checkout-index.c index a7a5ee10f..65cbee055 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] [--] ...", + "git checkout-index [options] [--] [...]", NULL }; diff --git a/builtin/update-index.c b/builtin/update-index.c index 3ab214d24..62d9f3f0f 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c @@ -398,7 +398,7 @@ static void read_index_info(int line_termination) } static const char update_index_usage[] = -"git update-index [-q] [--add] [--replace] [--remove] [--unmerged] [--refresh] [--really-refresh] [--cacheinfo] [--chmod=(+|-)x] [--assume-unchanged] [--skip-worktree|--no-skip-worktree] [--info-only] [--force-remove] [--stdin] [--index-info] [--unresolve] [--again | -g] [--ignore-missing] [-z] [--verbose] [--] ..."; +"git update-index [-q] [--add] [--replace] [--remove] [--unmerged] [--refresh] [--really-refresh] [--cacheinfo] [--chmod=(+|-)x] [--assume-unchanged] [--skip-worktree|--no-skip-worktree] [--info-only] [--force-remove] [--stdin] [--index-info] [--unresolve] [--again | -g] [--ignore-missing] [-z] [--verbose] [--] [...]"; static unsigned char head_sha1[20]; static unsigned char merge_head_sha1[20];