summaryrefslogtreecommitdiff
path: root/advice.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-09-09 11:38:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-09-12 04:33:20 (GMT)
commit75194438f412714f4e82ca01e9038dc6714498c4 (patch)
treefdb94ce1638902652ab77a84d7ffa9271f2fe47a /advice.h
parent6ea71fe7d36cf5b81c2100d97a822ecf0bc04746 (diff)
downloadgit-75194438f412714f4e82ca01e9038dc6714498c4.zip
git-75194438f412714f4e82ca01e9038dc6714498c4.tar.gz
git-75194438f412714f4e82ca01e9038dc6714498c4.tar.bz2
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.h')
-rw-r--r--advice.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/advice.h b/advice.h
new file mode 100644
index 0000000..862bae3
--- /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 */