From: Jeff Hostetler Date: Tue, 18 Jun 2019 20:21:27 +0000 (-0700) Subject: status: warn when a/b calculation takes too long X-Git-Tag: v2.23.0-rc0~55^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0a53561a6221f989b210797e62e83fb7260fa42c?ds=inline;hp=0a53561a6221f989b210797e62e83fb7260fa42c 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 Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano ---