We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccf1bb3 + afa8c07 commit 5956732Copy full SHA for 5956732
builtin/checkout.c
@@ -951,6 +951,9 @@ static int switch_unborn_to_new_branch(const struct checkout_opts *opts)
951
strbuf_addf(&branch_ref, "refs/heads/%s", opts->new_branch);
952
status = create_symref("HEAD", branch_ref.buf, "checkout -b");
953
strbuf_release(&branch_ref);
954
+ if (!opts->quiet)
955
+ fprintf(stderr, _("Switched to a new branch '%s'\n"),
956
+ opts->new_branch);
957
return status;
958
}
959
0 commit comments