doc txt & -h consistency: make "read-tree" consistent

The C version was right to use "()" in place of "[]" around the option listing, let's update the *.txt version accordingly, and furthermore list the *.c options in the same order as the *.txt. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Oct 13, 2022 at 17:39 UTC e8eeda1f9e1e125e268e97cfea42bf3ea8232b68
2 files changed +2 -2
Documentation/git-read-tree.txt
+1 -1
@@ -9,7 +9,7 @@ git-read-tree - Reads tree information into the index
9 SYNOPSIS
10 --------
11 [verse]
12 -'git read-tree' [[-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>]
12 +'git read-tree' [(-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>)
13 [-u | -i]] [--index-output=<file>] [--no-sparse-checkout]
14 (--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])
15
builtin/read-tree.c
+1 -1
@@ -39,7 +39,7 @@ static int list_tree(struct object_id *oid)
39
40 static const char * const read_tree_usage[] = {
41 N_("git read-tree [(-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>)\n"
42 - " [-u | -i]] [--no-sparse-checkout] [--index-output=<file>]\n"
42 + " [-u | -i]] [--index-output=<file>] [--no-sparse-checkout]\n"
43 " (--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])"),
44 NULL
45 };