Skip to content

Commit d86a8f3

Browse files
committed
remote: simplify "remote add --tags" help text
The help text for the --tags option was split into two option[] entries, which was a hacky way to give two lines of help text (the second entry did not have either short or long help, and there was no way to invoke its entry---it was there only for the help text). As we now support multi-line text in the option help, let's make the second line of the help a proper second line and remove the hacky second entry. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 448abbb commit d86a8f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

builtin/remote.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,9 @@ static int add(int argc, const char **argv, const char *prefix)
167167
struct option options[] = {
168168
OPT_BOOL('f', "fetch", &fetch, N_("fetch the remote branches")),
169169
OPT_SET_INT(0, "tags", &fetch_tags,
170-
N_("import all tags and associated objects when fetching"),
170+
N_("import all tags and associated objects when fetching\n"
171+
"or do not fetch any tag at all (--no-tags)"),
171172
TAGS_SET),
172-
OPT_SET_INT(0, NULL, &fetch_tags,
173-
N_("or do not fetch any tag at all (--no-tags)"), TAGS_UNSET),
174173
OPT_STRING_LIST('t', "track", &track, N_("branch"),
175174
N_("branch(es) to track")),
176175
OPT_STRING('m', "master", &master, N_("branch"), N_("master branch")),

0 commit comments

Comments
 (0)