diff options
| author | Rubén Justo <rjusto@gmail.com> | 2024-01-15 15:28:28 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-01-16 13:07:00 -0800 |
| commit | d919965af116d145de40853caf0e4228c97da325 (patch) | |
| tree | 8fe658ea1937c98fc8fa1f761da7229f546c6c0b /commit-graph.c | |
| parent | Merge branch 'rj/advice-delete-branch-not-fully-merged' into rj/advice-disabl... (diff) | |
| download | git-d919965af116d145de40853caf0e4228c97da325.tar.gz git-d919965af116d145de40853caf0e4228c97da325.zip | |
advice: 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, alongside the main
advice:
hint: use --reapply-cherry-picks to include skipped commits
hint: Disable this message with "git config advice.skippedCherryPicks false"
To do so, we provide a knob which can be used to disable the advice.
But also to tell us the opposite: to show the advice.
Let's not include the deactivation instructions for an advice if the
user explicitly sets its visibility.
Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
