Skip to content

Commit e8eeda1

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d775618 commit e8eeda1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-read-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-read-tree - Reads tree information into the index
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git read-tree' [[-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>]
12+
'git read-tree' [(-m [--trivial] [--aggressive] | --reset | --prefix=<prefix>)
1313
[-u | -i]] [--index-output=<file>] [--no-sparse-checkout]
1414
(--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])
1515

builtin/read-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static int list_tree(struct object_id *oid)
3939

4040
static const char * const read_tree_usage[] = {
4141
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"
4343
" (--empty | <tree-ish1> [<tree-ish2> [<tree-ish3>]])"),
4444
NULL
4545
};

0 commit comments

Comments
 (0)