Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-03-24 04:09:11 +0300
committerJunio C Hamano <gitster@pobox.com>2009-03-24 07:02:26 +0300
commitf198e218494800787909af0f3985350c3ecc27b2 (patch)
tree5de3d7b8bf6b70b8b857a1116e36266b389c98b9 /builtin-checkout.c
parenteca2a8f0236a3b5b2c3afca2643d433a51a205fe (diff)
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 9fdfc58d1a..fc55bbe14d 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;
}