From: Junio C Hamano Date: Tue, 09 Jan 2024 19:57:39 GMT Subject: Re: [PATCH 3/3] advice: allow disabling the automatic hint in advise_if_enabled() Message-ID: In-Reply-To: Taylor Blau writes: > Looking at this test, I wonder why we don't imitate the existing style > of: > > test_config advice.adviceOff false && > test-tool advise "This is a piece of advice" 2>actual && > test_cmp expect actual > > instead of teaching the test-tool helpers how to interpret `-c` > arguments. Doing so would allow us to drop the first couple of patches > in this series and simplify things a bit. Thanks for a dose of sanity. I too got a bit too excited by a shiny new toy ;-) Reusing the existing mechanism does make sense.