Subject: Re: [PATCH 0/3] add: use advise_if_enabled

From: Junio C Hamano <[email-masked]>
Date: Fri, 29 Mar 2024 10:28:34 -0700

Rubén Justo <[email-masked]> writes:

> This series is a simple change, in builtin/add.c, from:
>
> 	if (advice_enabled(XXX))
> 		advise(MMM)

I wonder if a coccinelle rule can automatically identify and rewrite
these ...

>
> to the newer:
>
> 	advise_if_enabled(XXX, MMM)

... to this form automatically.