]> git.ipfire.org Git - thirdparty/git.git/commit - advice.h
status: warn when a/b calculation takes too long
authorJeff Hostetler <jeffhost@microsoft.com>
Tue, 18 Jun 2019 20:21:27 +0000 (13:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Jun 2019 16:35:02 +0000 (09:35 -0700)
commit0a53561a6221f989b210797e62e83fb7260fa42c
treecee0de1cd4a6583ab2e99c249707b0d6c8fc5961
parent06b324c1d71411cdd31da03da9e85b1880ef1c4b
status: warn when a/b calculation takes too long

The ahead/behind calculation in 'git status' can be slow in some
cases. Users may not realize that there are ways to avoid this
computation, especially if they are not using the information.

Add a warning that appears if this calculation takes more than
two seconds. The warning can be disabled through the new config
setting advice.statusAheadBehind.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
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
wt-status.c