Skip to content

Commit 338dfd0

Browse files
sunshinecogitster
authored andcommitted
checkout: make --to unconditionally verbose
prepare_linked_checkout() respects git-checkout's --quiet flag, however, the plan is to relocate "git checkout --to" functionality to "git worktree add", and git-worktree does not (yet) have a --quiet flag. Consequently, make prepare_linked_checkout() unconditionally verbose to ease eventual code movement to worktree.c. (A --quiet flag can be added to git-worktree later if there is demand for it.) Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c3e7f5 commit 338dfd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/checkout.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,7 @@ static int prepare_linked_checkout(const struct checkout_opts *opts)
936936
strbuf_addf(&sb, "%s/commondir", sb_repo.buf);
937937
write_file(sb.buf, 1, "../..\n");
938938

939-
if (!opts->quiet)
940-
fprintf_ln(stderr, _("Enter %s (identifier %s)"), path, name);
939+
fprintf_ln(stderr, _("Enter %s (identifier %s)"), path, name);
941940

942941
setenv("GIT_CHECKOUT_NEW_WORKTREE", "1", 1);
943942
setenv(GIT_DIR_ENVIRONMENT, sb_git.buf, 1);

0 commit comments

Comments
 (0)