From b3c0494aa9b375033415ab1f815246e79d3d2029 Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Tue, 22 Feb 2011 22:43:22 +0000 Subject: [PATCH] checkout: add missing const to describe_detached_head Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- builtin/checkout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/checkout.c b/builtin/checkout.c index cd7f56e6c4..bef324e471 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -297,7 +297,7 @@ static void show_local_changes(struct object *head, struct diff_options *opts) run_diff_index(&rev, 0); } -static void describe_detached_head(char *msg, struct commit *commit) +static void describe_detached_head(const char *msg, struct commit *commit) { struct strbuf sb = STRBUF_INIT; struct pretty_print_context ctx = {0}; -- 2.11.4.GIT