aboutsummaryrefslogtreecommitdiff
path: root/builtin-checkout.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 02:09:11 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-23 21:02:26 -0700
commitf198e218494800787909af0f3985350c3ecc27b2 (patch)
tree5de3d7b8bf6b70b8b857a1116e36266b389c98b9 /builtin-checkout.c
parenteca2a8f0236a3b5b2c3afca2643d433a51a205fe (diff)
downloadgit-f198e218494800787909af0f3985350c3ecc27b2.tar.gz
git-f198e218494800787909af0f3985350c3ecc27b2.tar.xz
builtin-checkout: use warning() instead of fprintf(stderr, "warning: ")
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r--builtin-checkout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 9fdfc58d1..fc55bbe14 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -558,8 +558,8 @@ static int switch_branches(struct checkout_opts *opts, struct branch_info *new)
if (!old.commit && !opts->force) {
if (!opts->quiet) {
- fprintf(stderr, "warning: You appear to be on a branch yet to be born.\n");
- fprintf(stderr, "warning: Forcing checkout of %s.\n", new->name);
+ warning("You appear to be on a branch yet to be born.");
+ warning("Forcing checkout of %s.", new->name);
}
opts->force = 1;
}