Skip to content

Commit c08cfc3

Browse files
avargitster
authored andcommitted
doc txt & -h consistency: add or fix optional "--" syntax
Add the "[--]" for those cases where the *.txt and -h were inconsistent, or where we incorrectly stated in one but not the other that the "--" was mandatory. In the case of "rev-list" both sides were wrong, as we we don't require one or more paths if "--" is used, e.g. this is OK: git rev-list HEAD -- That part of this change is not a "doc txt & -h consistency" change, as we're changing both versions, doing so here makes both sides consistent. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f6a8ef0 commit c08cfc3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Documentation/git-rev-list.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-rev-list - Lists commit objects in reverse chronological order
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git rev-list' [<options>] <commit>... [[--] <path>...]
12+
'git rev-list' [<options>] <commit>... [--] [<path>...]
1313

1414
DESCRIPTION
1515
-----------

builtin/for-each-repo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "string-list.h"
77

88
static const char * const for_each_repo_usage[] = {
9-
N_("git for-each-repo --config=<config> <arguments>"),
9+
N_("git for-each-repo --config=<config> [--] <arguments>"),
1010
NULL
1111
};
1212

builtin/rev-list.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "packfile.h"
2121

2222
static const char rev_list_usage[] =
23-
"git rev-list [<options>] <commit>... [-- <path>...]\n"
23+
"git rev-list [<options>] <commit>... [--] [<path>...]\n"
2424
"\n"
2525
" limiting output:\n"
2626
" --max-count=<n>\n"

builtin/verify-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static int verify_one_pack(const char *path, unsigned int flags, const char *has
5656
}
5757

5858
static const char * const verify_pack_usage[] = {
59-
N_("git verify-pack [-v | --verbose] [-s | --stat-only] <pack>.idx..."),
59+
N_("git verify-pack [-v | --verbose] [-s | --stat-only] [--] <pack>.idx..."),
6060
NULL
6161
};
6262

0 commit comments

Comments
 (0)