Code

difftool: add support for a difftool.prompt config variable
[git.git] / builtin-checkout.c
index 66df0c072cba89e74af26a767a6fa9b65d5449ef..33d1fecb6251b4922666255817addeb9f672fa29 100644 (file)
@@ -553,8 +553,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;
        }