From: Eric Sunshine Date: Fri, 17 Jul 2015 23:00:05 GMT Subject: [PATCH v3 10/22] worktree: improve worktree setup message Message-ID: <1437174017-81687-11-git-send-email-sunshine@sunshineco.com> In-Reply-To: <1437174017-81687-1-git-send-email-sunshine@sunshineco.com> When git-worktree creates a new worktree, it reports: Enter "" (identifier ) which misleadingly implies that it is setting as the working directory (as if "cd " 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 "" (identifier ) Signed-off-by: Eric Sunshine --- New in v3. builtin/worktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/worktree.c b/builtin/worktree.c index 69248ba..5f0e3c2 100644 --- a/builtin/worktree.c +++ b/builtin/worktree.c @@ -245,7 +245,7 @@ static int add_worktree(const char *path, const char **child_argv) strbuf_addf(&sb, "%s/commondir", sb_repo.buf); write_file(sb.buf, 1, "../..\n"); - fprintf_ln(stderr, _("Enter %s (identifier %s)"), path, name); + fprintf_ln(stderr, _("Preparing %s (identifier %s)"), path, name); setenv("GIT_CHECKOUT_NEW_WORKTREE", "1", 1); setenv(GIT_DIR_ENVIRONMENT, sb_git.buf, 1); -- 2.5.0.rc2.378.g0af52e8