git/advice.h
Jeff King 75194438f4 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>
2009-09-11 21:33:20 -07:00

9 lines
165 B
C

#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 */