checkout: add missing const to describe_detached_head
authorJonathan Nieder <jrnieder@gmail.com>
Tue, 22 Feb 2011 22:43:22 +0000 (22:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Feb 2011 00:51:20 +0000 (16:51 -0800)
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c

index cd7f56e6c4b6e1b1059ffa0eae91b46e579b9e97..bef324e4717fbe73da852c49c664e02d70955fc9 100644 (file)
@@ -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};