summaryrefslogtreecommitdiff
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-02-22 22:43:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-23 00:51:20 (GMT)
commitb3c0494aa9b375033415ab1f815246e79d3d2029 (patch)
treed4a92d09131c2ade5fb61e17693659a3874eee2c /builtin/checkout.c
parentdca3d715aa41cca8e1c02e78b1291992ad4dbb50 (diff)
downloadgit-b3c0494aa9b375033415ab1f815246e79d3d2029.zip
git-b3c0494aa9b375033415ab1f815246e79d3d2029.tar.gz
git-b3c0494aa9b375033415ab1f815246e79d3d2029.tar.bz2
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>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index cd7f56e..bef324e 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};