Skip to content

Commit b3c0494

Browse files
jrngitster
authored andcommitted
checkout: add missing const to describe_detached_head
Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dca3d71 commit b3c0494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/checkout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static void show_local_changes(struct object *head, struct diff_options *opts)
297297
run_diff_index(&rev, 0);
298298
}
299299

300-
static void describe_detached_head(char *msg, struct commit *commit)
300+
static void describe_detached_head(const char *msg, struct commit *commit)
301301
{
302302
struct strbuf sb = STRBUF_INIT;
303303
struct pretty_print_context ctx = {0};

0 commit comments

Comments
 (0)