From: Miklos Vajna Date: Tue, 24 Mar 2009 01:09:11 +0000 (+0100) Subject: builtin-checkout: use warning() instead of fprintf(stderr, "warning: ") X-Git-Tag: v1.6.3-rc0~108 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f198e218494800787909af0f3985350c3ecc27b2;p=git.git builtin-checkout: use warning() instead of fprintf(stderr, "warning: ") Signed-off-by: Miklos Vajna Signed-off-by: Junio C Hamano --- 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; }