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>
Miklos Vajna committed
Mar 24, 2009 at 02:09 UTC
f198e218494800787909af0f3985350c3ecc27b2
1 file changed
+2
-2
builtin-checkout.c
+2
-2
@@ -558,8 +558,8 @@ static int switch_branches(struct checkout_opts *opts, struct branch_info *new)
558
559
if (!old.commit && !opts->force) {
560
if (!opts->quiet) {
561
- fprintf(stderr, "warning: You appear to be on a branch yet to be born.\n");
562
- fprintf(stderr, "warning: Forcing checkout of %s.\n", new->name);
561
+ warning("You appear to be on a branch yet to be born.");
562
+ warning("Forcing checkout of %s.", new->name);
563
}
564
opts->force = 1;
565
}