From: Junio C Hamano Date: Fri, 29 Mar 2024 17:28:34 GMT Subject: Re: [PATCH 0/3] add: use advise_if_enabled Message-ID: In-Reply-To: <06c9b422-b22e-4310-ad5b-1686616ab860@gmail.com> Rubén Justo 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.