From: Johannes Schindelin Date: Thu, 19 Nov 2020 09:32:30 GMT Subject: Re: [RFC/PATCH] tests: support testing with an arbitrary default branch (sort of) Message-ID: In-Reply-To: Hi Junio & Ævar, On Wed, 18 Nov 2020, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > > > P.S.: Shouldn't the pull patch in d18c950a69f be using the advice > > facility, not warning()? > > I think warning() is the right thing here, as it is self squelching. > Setting pull.rebase (even to 'false') is sufficient---there is no > need to set advise.setpullrebase to 'false' on top. Right. The only reason to use `advise()` would be to allow users to squelch the warning by setting `advice.*`. On the other hand, warnings are not colored, but advice messages are. And now I realize that the same holds for `init.defaultBranch`: it is also self-squelching. And it also might benefit from the coloring to make it stand out a bit. Thoughts? Ciao, Dscho