Subject: Re: [PATCH v2 1/2] format-patch: add ability to use alt cover format

From: Junio C Hamano <[email-masked]>
Date: Tue, 24 Feb 2026 12:25:26 -0800

Mirko Faina <[email-masked]> writes:

> +	char *cover_letter_fmt = NULL;
> ...
> +
> +	if (cover_letter && !cover_letter_fmt)
> +		cover_letter_fmt = "shortlog";

The compiler flags the above assignment, which is understandable.

builtin/log.c:2442:34: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
 2442 |                 cover_letter_fmt = "shortlog";