Thread (2 messages) 2 messages, 2 authors, 2024-03-29

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

From: Rubén Justo <hidden>
Date: 2024-03-29 19:16:33

On Fri, Mar 29, 2024 at 10:28:34AM -0700, Junio C Hamano wrote:
Rubén Justo [off-list ref] writes:
quoted
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 ...
quoted
to the newer:

	advise_if_enabled(XXX, MMM)
... to this form automatically.
I don't have a solid opinion on that but, after a cursory review, I have
doubts a simple rule could catch enough cases to make it worth the
effort.

And, let's hope that the new code will utilize the new API for its
convenience.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help