path: root/advice.h
diff options
authorJeff King <>2009-09-09 11:38:58 (GMT)
committerJunio C Hamano <>2009-09-12 04:33:20 (GMT)
commit75194438f412714f4e82ca01e9038dc6714498c4 (patch)
treefdb94ce1638902652ab77a84d7ffa9271f2fe47a /advice.h
parent6ea71fe7d36cf5b81c2100d97a822ecf0bc04746 (diff)
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 <>
Diffstat (limited to 'advice.h')
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 */