Skip to content

Commit 20fc73e

Browse files
avargitster
authored andcommitted
i18n: mark checkout --detach messages for translation
Mark messages added in v1.7.5-rc0~117^2~2 (checkout: introduce --detach synonym for "git checkout foo^{commit}") by Junio C Hamano for translation. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d3e1ddf commit 20fc73e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/checkout.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,9 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
961961
die (_("--patch is incompatible with all other options"));
962962

963963
if (opts.force_detach && (opts.new_branch || opts.new_orphan_branch))
964-
die("--detach cannot be used with -b/-B/--orphan");
964+
die(_("--detach cannot be used with -b/-B/--orphan"));
965965
if (opts.force_detach && 0 < opts.track)
966-
die("--detach cannot be used with -t");
966+
die(_("--detach cannot be used with -t"));
967967

968968
/* --track without -b should DWIM */
969969
if (0 < opts.track && !opts.new_branch) {
@@ -1043,7 +1043,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
10431043
}
10441044

10451045
if (opts.force_detach)
1046-
die("git checkout: --detach does not take a path argument");
1046+
die(_("git checkout: --detach does not take a path argument"));
10471047

10481048
if (1 < !!opts.writeout_stage + !!opts.force + !!opts.merge)
10491049
die(_("git checkout: --ours/--theirs, --force and --merge are incompatible when\nchecking out of the index."));

0 commit comments

Comments
 (0)