Skip to content

allow disabling the automatic hint in advise_if_enabled()

Rubén Justo git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3t/test-tool: usage descriptiont/helper/test-tool.c+2 -21 reply
2/3t/test-tool: handle -c <name>=<value> argumentst/helper/test-tool.c+12 -12 replies
3/3advice: allow disabling the automatic hint in advise_if_enabled()advice.c advice.h t/t0018-advice.sh+12 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] allow disabling the automatic hint in advise_if_enabled()

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(-)
Signature · 1 line
2.42.0