summaryrefslogtreecommitdiff
path: root/advice.h
diff options
context:
space:
mode:
authorBen Peart <benpeart@microsoft.com>2018-10-23 19:04:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-24 02:57:08 (GMT)
commit649bf3a42f344e71b1b5a7f562576f911a1f7423 (patch)
treec5559a7735da4ad4c8562dbf6234c891929bdfa8 /advice.h
parent4c3abd0551d8ff1c280de2bc53d6a7657b053d33 (diff)
downloadgit-649bf3a42f344e71b1b5a7f562576f911a1f7423.zip
git-649bf3a42f344e71b1b5a7f562576f911a1f7423.tar.gz
git-649bf3a42f344e71b1b5a7f562576f911a1f7423.tar.bz2
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>
Diffstat (limited to 'advice.h')
-rw-r--r--advice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/advice.h b/advice.h
index ab24df0..696bf0e 100644
--- a/advice.h
+++ b/advice.h
@@ -12,6 +12,7 @@ extern int advice_push_needs_force;
extern int advice_status_hints;
extern int advice_status_u_option;
extern int advice_commit_before_merge;
+extern int advice_reset_quiet_warning;
extern int advice_resolve_conflict;
extern int advice_implicit_identity;
extern int advice_detached_head;