diff options
author | Jeff King <peff@peff.net> | 2009-09-09 07:38:58 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-09-11 21:33:20 -0700 |
commit | 75194438f412714f4e82ca01e9038dc6714498c4 (patch) | |
tree | fdb94ce1638902652ab77a84d7ffa9271f2fe47a /config.c | |
parent | 6ea71fe7d36cf5b81c2100d97a822ecf0bc04746 (diff) | |
download | git-75194438f412714f4e82ca01e9038dc6714498c4.tar.gz |
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 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -627,6 +627,9 @@ int git_default_config(const char *var, const char *value, void *dummy) if (!prefixcmp(var, "mailmap.")) return git_default_mailmap_config(var, value); + if (!prefixcmp(var, "advice.")) + return git_default_advice_config(var, value); + if (!strcmp(var, "pager.color") || !strcmp(var, "color.pager")) { pager_use_color = git_config_bool(var,value); return 0; |