From: Alex Henrie Date: Thu, 27 Aug 2015 04:27:06 +0000 (-0600) Subject: read-tree: replace bracket set with parentheses to clarify usage X-Git-Tag: v2.6.0-rc0~12^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/9476c2c39e1af1ebe00d061a852b9d56553d8d1f read-tree: replace bracket set with parentheses to clarify usage -u and -i can only be given if -m, --reset, or --prefix is given. Without parentheses, it looks like -u and -i can be used no matter what, and the second pair of brackets is confusing. Signed-off-by: Alex Henrie Signed-off-by: Junio C Hamano --- diff --git a/builtin/read-tree.c b/builtin/read-tree.c index 042ac1b84f..70dc100b43 100644 --- a/builtin/read-tree.c +++ b/builtin/read-tree.c @@ -33,7 +33,7 @@ static int list_tree(unsigned char *sha1) } static const char * const read_tree_usage[] = { - N_("git read-tree [[-m [--trivial] [--aggressive] | --reset | --prefix=] [-u [--exclude-per-directory=] | -i]] [--no-sparse-checkout] [--index-output=] (--empty | [ []])"), + N_("git read-tree [(-m [--trivial] [--aggressive] | --reset | --prefix=) [-u [--exclude-per-directory=] | -i]] [--no-sparse-checkout] [--index-output=] (--empty | [ []])"), NULL };