Skip to content

Commit

Permalink
Merge branch 'jk/checkout-out-of-unborn' into maint
Browse files Browse the repository at this point in the history
* jk/checkout-out-of-unborn:
  checkout: print a message when switching unborn branches
  • Loading branch information
Junio C Hamano committed Nov 26, 2012
2 parents ccf1bb3 + afa8c07 commit 5956732
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5956732

Please sign in to comment.