Browse Source

Merge branch 'jk/checkout-out-of-unborn' into maint

* jk/checkout-out-of-unborn:
  checkout: print a message when switching unborn branches
maint
Junio C Hamano 12 years ago
parent
commit
5956732ebb
  1. 3
      builtin/checkout.c

3
builtin/checkout.c

@ -951,6 +951,9 @@ static int switch_unborn_to_new_branch(const struct checkout_opts *opts) @@ -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;
}


Loading…
Cancel
Save