Skip to content

Commit fa0f4e4

Browse files
KarthikNayakgitster
authored andcommitted
for-each-ref: reword the documentation for '--start-after'
The documentation for '--start-after' states that the flag cannot be used with general pattern matching. This is a bit vague, since there is no clear understanding about what 'general' means here. Rewrite the sentence to be more specific. While here, fix a typo in the 'OPT_STRING'. Helped-by: Junio C Hamano <[email protected]> Signed-off-by: Karthik Nayak <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a7c8a4c commit fa0f4e4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Documentation/git-for-each-ref.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ TAB %(refname)`.
114114
deleted, modified or added between invocations. Output will only yield those
115115
references which follow the marker lexicographically. Output begins from the
116116
first reference that would come after the marker alphabetically. Cannot be
117-
used with general pattern matching or custom sort options.
117+
used with `--sort=<key>` or `--stdin` options, or the _<pattern>_ argument(s)
118+
to limit the refs.
118119

119120
FIELD NAMES
120121
-----------

builtin/for-each-ref.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int cmd_for_each_ref(int argc,
4545
OPT_GROUP(""),
4646
OPT_INTEGER( 0 , "count", &format.array_opts.max_count, N_("show only <n> matched refs")),
4747
OPT_STRING( 0 , "format", &format.format, N_("format"), N_("format to use for the output")),
48-
OPT_STRING( 0 , "start-after", &filter.start_after, N_("start-start"), N_("start iteration after the provided marker")),
48+
OPT_STRING( 0 , "start-after", &filter.start_after, N_("start-after"), N_("start iteration after the provided marker")),
4949
OPT__COLOR(&format.use_color, N_("respect format colors")),
5050
OPT_REF_FILTER_EXCLUDE(&filter),
5151
OPT_REF_SORT(&sorting_options),

0 commit comments

Comments
 (0)