From 75194438f412714f4e82ca01e9038dc6714498c4 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Wed, 9 Sep 2009 07:38:58 -0400 Subject: push: make non-fast-forward help message configurable This message is designed to help new users understand what has happened when refs fail to push. However, it does not help experienced users at all, and significantly clutters the output, frequently dwarfing the regular status table and making it harder to see. This patch introduces a general configuration mechanism for optional messages, with this push message as the first example. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- advice.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 advice.h (limited to 'advice.h') diff --git a/advice.h b/advice.h new file mode 100644 index 0000000000..862bae37b8 --- /dev/null +++ b/advice.h @@ -0,0 +1,8 @@ +#ifndef ADVICE_H +#define ADVICE_H + +extern int advice_push_nonfastforward; + +int git_default_advice_config(const char *var, const char *value); + +#endif /* ADVICE_H */ -- cgit v1.2.3