checkout: add missing const to describe_detached_head
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jonathan Nieder committed
Feb 22, 2011 at 22:43 UTC
b3c0494aa9b375033415ab1f815246e79d3d2029
1 file changed
+1
-1
builtin/checkout.c
+1
-1
@@ -297,7 +297,7 @@ static void show_local_changes(struct object *head, struct diff_options *opts)
297
run_diff_index(&rev, 0);
298
}
299
300
-static void describe_detached_head(char *msg, struct commit *commit)
300
+static void describe_detached_head(const char *msg, struct commit *commit)
301
{
302
struct strbuf sb = STRBUF_INIT;
303
struct pretty_print_context ctx = {0};