Subject: Re: [PATCH 3/5] commit: add commit_generation function

From: Clemens Buchacher <[email-masked]>
Date: Mon, 11 Jul 2011 19:57:09 +0200

On Mon, Jul 11, 2011 at 12:18:14PM -0400, Jeff King wrote:
>
> +unsigned long commit_generation(const struct commit *commit)
> +{
[...]
> +	/* drop const because we may call parse_commit */
> +	return commit_generation_recurse((struct commit *)commit);
> +}

Out of curiosity, why make it const in the first place?

Clemens