Skip to content

Commit 8e663af

Browse files
committed
Merge branch 'as/option-names-in-messages'
Error message updates. * as/option-names-in-messages: revision.c: trivial fix to message builtin/clone.c: trivial fix of message builtin/remote.c: trivial fix of error message transport-helper.c: trivial fix of error message
2 parents b09a883 + 781fb7b commit 8e663af

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

builtin/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static struct option builtin_clone_options[] = {
116116
OPT_HIDDEN_BOOL(0, "naked", &option_bare,
117117
N_("create a bare repository")),
118118
OPT_BOOL(0, "mirror", &option_mirror,
119-
N_("create a mirror repository (implies bare)")),
119+
N_("create a mirror repository (implies --bare)")),
120120
OPT_BOOL('l', "local", &option_local,
121121
N_("to clone from a local repository")),
122122
OPT_BOOL(0, "no-hardlinks", &option_no_hardlinks,

builtin/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ static int parse_mirror_opt(const struct option *opt, const char *arg, int not)
150150
else if (!strcmp(arg, "push"))
151151
*mirror = MIRROR_PUSH;
152152
else
153-
return error(_("unknown mirror argument: %s"), arg);
153+
return error(_("unknown --mirror argument: %s"), arg);
154154
return 0;
155155
}
156156

revision.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg
23582358
} else if (skip_prefix(arg, "--ancestry-path=", &optarg)) {
23592359
struct commit *c;
23602360
struct object_id oid;
2361-
const char *msg = _("could not get commit for ancestry-path argument %s");
2361+
const char *msg = _("could not get commit for --ancestry-path argument %s");
23622362

23632363
revs->ancestry_path = 1;
23642364
revs->simplify_history = 0;

transport-helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ static int push_refs_with_export(struct transport *transport,
10781078
set_common_push_options(transport, data->name, flags);
10791079
if (flags & TRANSPORT_PUSH_FORCE) {
10801080
if (set_helper_option(transport, "force", "true") != 0)
1081-
warning(_("helper %s does not support 'force'"), data->name);
1081+
warning(_("helper %s does not support '--force'"), data->name);
10821082
}
10831083

10841084
helper = get_helper(transport);

0 commit comments

Comments
 (0)