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