From: Felipe Contreras Date: Tue, 15 Dec 2020 06:35:00 GMT Subject: Re: [PATCH v7 4/5] pull: correct condition to trigger non-ff advice Message-ID: <5fd859149990b_d7c48208d8@natae.notmuch> In-Reply-To: Junio C Hamano wrote: > Felipe Contreras writes: > > > Then, we could just do: > > > > if (opt_verbosity >= 0) > > advise(_(message_advice_pull_non_ff)). > > > > Or even better: > > > > if (opt_verbosity >= 0) > > advise_if_enabled(ADVICE_PULL_NON_FF, _(message_advice_pull_non_ff)); > > I do not think we've decided what's the right way to squelch this > advice, so it is a bit premature to favor the latter over the > former. I agree. Just thinking about the future. > Between a fixed message[] variable and a single-purpose > helper function I have no real preference. OK. I just mentioned for consistencty with other parts of git. -- Felipe Contreras