Code

push: make non-fast-forward help message configurable
authorJeff King <peff@peff.net>
Wed, 9 Sep 2009 11:38:58 +0000 (07:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 12 Sep 2009 04:33:20 +0000 (21:33 -0700)
commit75194438f412714f4e82ca01e9038dc6714498c4
treefdb94ce1638902652ab77a84d7ffa9271f2fe47a
parent6ea71fe7d36cf5b81c2100d97a822ecf0bc04746
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>
Documentation/config.txt
Makefile
advice.c [new file with mode: 0644]
advice.h [new file with mode: 0644]
builtin-push.c
cache.h
config.c