From: Rubén Justo Date: Tue, 09 Jan 2024 15:25:32 GMT Subject: [PATCH 0/3] allow disabling the automatic hint in advise_if_enabled() 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 = 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