reset: warn when refresh_index() takes more than 2 seconds
commit649bf3a42f344e71b1b5a7f562576f911a1f7423
authorBen Peart <benpeart@microsoft.com>
Tue, 23 Oct 2018 19:04:23 +0000 (23 15:04 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Oct 2018 02:57:08 +0000 (24 11:57 +0900)
treec5559a7735da4ad4c8562dbf6234c891929bdfa8
parent4c3abd0551d8ff1c280de2bc53d6a7657b053d33
reset: warn when refresh_index() takes more than 2 seconds

refresh_index() is done after a reset command as an optimization.  Because
it can be an expensive call, warn the user if it takes more than 2 seconds
and tell them how to avoid it using the --quiet command line option or
reset.quiet config setting.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
advice.c
advice.h
builtin/reset.c