Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Manz <smanz@alum.mit.edu>2021-07-11 03:27:19 +0300
committerJunio C Hamano <gitster@pobox.com>2021-07-14 19:29:59 +0300
commitf7c35ea2a1292d581ca79d395fc978f92a3aec5b (patch)
tree4bd1f1f9630e0ffdbae38c9c879ec3abc0069879 /builtin
parentf9365c0a24b9d2346a9b2b5a24e1fa02039f23e5 (diff)
worktree: mark lock strings with `_()` for translation
- default lock string, "added with --lock" - temporary lock string, "initializing" Signed-off-by: Stephen Manz <smanz@alum.mit.edu> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/worktree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 976bf8ed06..4829b9507f 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -303,9 +303,9 @@ static int add_worktree(const char *path, const char *refname,
*/
strbuf_addf(&sb, "%s/locked", sb_repo.buf);
if (!opts->keep_locked)
- write_file(sb.buf, "initializing");
+ write_file(sb.buf, _("initializing"));
else
- write_file(sb.buf, "added with --lock");
+ write_file(sb.buf, _("added with --lock"));
strbuf_addf(&sb_git, "%s/.git", path);
if (safe_create_leading_directories_const(sb_git.buf))