From: Miklos Vajna Date: Tue, 24 Mar 2009 01:09:11 GMT Subject: [PATCH 3/9] builtin-checkout: use warning() instead of fprintf(stderr, "warning: ") Message-ID: In-Reply-To: <9287282d966904f06ae4b3d7cfdf1d79eb645b69.1237856682.git.vmiklos@frugalware.org> Signed-off-by: Miklos Vajna --- builtin-checkout.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin-checkout.c b/builtin-checkout.c index 9fdfc58..fc55bbe 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; } -- 1.6.2