[PATCH 0/3] allow disabling the automatic hint in advise_if_enabled()
- From
Rubén Justo <rjusto@gmail.com>
- Date
- Jan 9, 2024, 15:25 UTC
- Message-ID
- <7c68392c-af2f-4999-ae64-63221bf7833a@gmail.com>
Using advise_if_enabled() to display an advice will automatically include instructions on how to disable the advice, along with the main advice:
hint: use --reapply-cherry-picks to include skipped commits hint: Disable this message with "git config advice.skippedCherryPicks false"
This may become distracting or "noisy" over time, while the user may still want to receive the main advice.
Let's have a switch to allow disabling this automatic advice.
Rubén Justo (3): t/test-tool: usage description t/test-tool: handle -c <name>=<value> arguments advice: allow disabling the automatic hint in advise_if_enabled()
advice.c | 3 ++- advice.h | 3 ++- t/helper/test-tool.c | 15 +++++++++++++-- t/t0018-advice.sh | 8 ++++++++ 4 files changed, 25 insertions(+), 4 deletions(-)
-- 2.42.0