Skip to content

Commit cd2f471

Browse files
sunshinecogitster
authored andcommitted
worktree: improve worktree setup message
When git-worktree creates a new worktree, it reports: Enter "<path>" (identifier <tag>) which misleadingly implies that it is setting <path> as the working directory (as if "cd <path>" had been invoked), whereas it's actually preparing the new worktree by creating its administrative files, setting HEAD, and populating it. Make this more clear by instead saying: Preparing "<path>" (identifier <tag>) Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ed89f84 commit cd2f471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static int add_worktree(const char *path, const char **child_argv)
245245
strbuf_addf(&sb, "%s/commondir", sb_repo.buf);
246246
write_file(sb.buf, 1, "../..\n");
247247

248-
fprintf_ln(stderr, _("Enter %s (identifier %s)"), path, name);
248+
fprintf_ln(stderr, _("Preparing %s (identifier %s)"), path, name);
249249

250250
setenv("GIT_CHECKOUT_NEW_WORKTREE", "1", 1);
251251
setenv(GIT_DIR_ENVIRONMENT, sb_git.buf, 1);

0 commit comments

Comments
 (0)