Git 1.8.1.3
[git.git] / builtin / checkout.c
index 781295b2c9abf033481bc135ca1d2330ca489937..a9c1b5a95fea0a805819f995da2d2f1ba194433d 100644 (file)
@@ -951,6 +951,9 @@ static int switch_unborn_to_new_branch(const struct checkout_opts *opts)
        strbuf_addf(&branch_ref, "refs/heads/%s", opts->new_branch);
        status = create_symref("HEAD", branch_ref.buf, "checkout -b");
        strbuf_release(&branch_ref);
+       if (!opts->quiet)
+               fprintf(stderr, _("Switched to a new branch '%s'\n"),
+                       opts->new_branch);
        return status;
 }