]> git.ipfire.org Git - thirdparty/git.git/commit - advice.h
fetch: warn about forced updates in branch listing
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 18 Jun 2019 20:25:27 +0000 (13:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Jun 2019 16:38:29 +0000 (09:38 -0700)
commit377444b440eab3b6ef636df092f7f8299acf75bb
treea38c9411648d6cbb3aac25859c30d3a206290275
parentcdbd70c43773d534aa81ea2c83905a45ff0e74e4
fetch: warn about forced updates in branch listing

The --[no-]show-forced-updates option in 'git fetch' can be confusing
for some users, especially if it is enabled via config setting and not
by argument. Add advice to warn the user that the (forced update)
messages were not listed.

Additionally, warn users when the forced update check takes longer
than ten seconds, and recommend that they disable the check. These
messages can be disabled by the advice.fetchShowForcedUpdates config
setting.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/advice.txt
advice.c
advice.h
builtin/fetch.c