diff options
| author | Justin Tobler <jltobler@gmail.com> | 2025-03-24 19:51:48 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-25 16:09:28 -0700 |
| commit | ec0f362e869fc74c3c9f011ae2097daa1c938833 (patch) | |
| tree | 02605c0691791c40b778e51a3fd659fa784d7095 /diffcore-rename.c | |
| parent | c039a46e99541042554c52bdad2fb10ac5a1e97d (diff) | |
advice: allow disabling default branch name advice
The default branch name advice message is displayed when
`repo_default_branch_name()` is invoked and the `init.defaultBranch`
config is not set. In this scenario, the advice message is always shown
even if the `--no-advice` option is used.
Adapt `repo_default_branch_name()` to allow the default branch name
advice message to be disabled with the `--no-advice` option and
corresponding configuration.
Signed-off-by: Justin Tobler <jltobler@gmail.com>
Acked-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-rename.c')
0 files changed, 0 insertions, 0 deletions
