Re: [PATCH v4 2/3] advice: introduce advice scoping mechanism
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 10, 2026, 19:54 UTC
- Message-ID
- <xmqqh5jwevbm.fsf@gitster.g>
- In-Reply-To
- <20260910190345.GA903701@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I kind of wonder if _all_ advice should just say "--global". I cannot > think of an advice flag that is really repo specific. They are about > silencing extra help because the _user_ understands the situation and > wants Git to be less chatty.
I think there are two things in play.
* If applicability of a piece of advice depends on the workflow employed, and a user who works on multiple projects that use different workflows, set of advice messages may want to be squelched per project, hence "--global" may not be appropriate.
* "I, a physical single person, understand this piece of advice" is inherently per user, so squelching a piece of advice that the physical single person understands globally may make sense very well.
In hindsight, the latter argument should have been given more weight, but I think the primary thinking back when we designed the customizable advice messages was instead the former.