summaryrefslogtreecommitdiff
path: root/builtin/checkout-index.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-08-27 14:33:43 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-08-27 14:33:43 -0700
commitfc0df933c8fa09603a9e9798085ee07ca1a83f65 (patch)
treeeb9d2ad782975bd21f6725e0a30add4a374ccadb /builtin/checkout-index.c
parentMerge branch 'nd/complete-config-vars' (diff)
parentparseopt: group literal string alternatives in argument help (diff)
downloadtgif-fc0df933c8fa09603a9e9798085ee07ca1a83f65.tar.xz
Merge branch 'rs/opt-updates'
"git cmd -h" updates. * rs/opt-updates: parseopt: group literal string alternatives in argument help remote: improve argument help for add --mirror checkout-index: improve argument help for --stage
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 d92db62fbd..88b86c8d9f 100644
--- a/builtin/checkout-index.c
+++ b/builtin/checkout-index.c
@@ -172,7 +172,7 @@ int cmd_checkout_index(int argc, const char **argv, const char *prefix)
N_("write the content to temporary files")),
OPT_STRING(0, "prefix", &state.base_dir, N_("string"),
N_("when creating files, prepend <string>")),
- { OPTION_CALLBACK, 0, "stage", NULL, "1-3|all",
+ { OPTION_CALLBACK, 0, "stage", NULL, "(1|2|3|all)",
N_("copy out the files from named stage"),
PARSE_OPT_NONEG, option_parse_stage },
OPT_END()