Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/checkout-out-of-unborn'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Nov 2012 18:43:18 +0000
(10:43 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 20 Nov 2012 18:43:18 +0000
(10:43 -0800)
* jk/checkout-out-of-unborn:
checkout: print a message when switching unborn branches
builtin/checkout.c
patch
|
blob
|
history
raw
(from parent 1:
0f76f97
)
diff --git
a/builtin/checkout.c
b/builtin/checkout.c
index 781295b2c9abf033481bc135ca1d2330ca489937..a9c1b5a95fea0a805819f995da2d2f1ba194433d 100644
(file)
--- a/
builtin/checkout.c
+++ b/
builtin/checkout.c
@@
-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;
}