Subject: Re: [PATCH] builtin-name-rev.c: remove the remaining "typedef struct rev_name" from git.

From: Stephen Boyd <[email-masked]>
Date: Fri, 29 Jan 2010 23:53:16 -0800

On 01/29/2010 05:32 PM, Thiago Farina wrote:
> @@ -43,7 +43,7 @@ static void name_rev(struct commit *commit,
>   	}
>
>   	if (name == NULL) {
> -		name = xmalloc(sizeof(rev_name));
> +		name = xmalloc(sizeof(struct rev_name));

How about sizeof(*name) instead? This way we don't have to change it 
when the type changes again.