Code

Add configuration variable for sign-off to format-patch
[git.git] / builtin-checkout.c
index 9fdfc58d1a198164727431352e083585d91f2d30..fc55bbe14d58df66e71a9e1975bb7c4eecdc1a49 100644 (file)
@@ -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;
        }