path: root/advice.h
diff options
authorJeff Hostetler <>2019-06-18 20:21:27 (GMT)
committerJunio C Hamano <>2019-06-21 16:35:02 (GMT)
commit0a53561a6221f989b210797e62e83fb7260fa42c (patch)
treecee0de1cd4a6583ab2e99c249707b0d6c8fc5961 /advice.h
parent06b324c1d71411cdd31da03da9e85b1880ef1c4b (diff)
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 <>
Diffstat (limited to 'advice.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/advice.h b/advice.h
index e50f02c..c86de9b 100644
--- a/advice.h
+++ b/advice.h
@@ -12,6 +12,7 @@ extern int advice_push_needs_force;
extern int advice_push_unqualified_ref_name;
extern int advice_status_hints;
extern int advice_status_u_option;
+extern int advice_status_ahead_behind_warning;
extern int advice_commit_before_merge;
extern int advice_reset_quiet_warning;
extern int advice_resolve_conflict;