Skip to content

Commit

Permalink
builtin-checkout: use warning() instead of fprintf(stderr, "warning: ")
Browse files Browse the repository at this point in the history
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Miklos Vajna authored and Junio C Hamano committed Mar 24, 2009
1 parent eca2a8f commit f198e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin-checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f198e21

Please sign in to comment.