| Jeff King | 7519443 | 2009-09-09 11:38:58 | [diff] [blame] | 1 | #ifndef ADVICE_H |
| 2 | #define ADVICE_H |
| 3 | |
| Matthieu Moy | d38a30d | 2010-01-12 09:54:44 | [diff] [blame] | 4 | #include "git-compat-util.h" |
| 5 | |
| Chris Rorvick | 1184564 | 2012-12-03 03:27:50 | [diff] [blame] | 6 | extern int advice_push_update_rejected; |
| Christopher Tiwald | f25950f | 2012-03-20 04:31:33 | [diff] [blame] | 7 | extern int advice_push_non_ff_current; |
| Christopher Tiwald | f25950f | 2012-03-20 04:31:33 | [diff] [blame] | 8 | extern int advice_push_non_ff_matching; |
| Chris Rorvick | b450568 | 2012-12-03 03:27:51 | [diff] [blame] | 9 | extern int advice_push_already_exists; |
| Junio C Hamano | 75e5c0d | 2013-01-23 21:55:30 | [diff] [blame] | 10 | extern int advice_push_fetch_first; |
| 11 | extern int advice_push_needs_force; |
| Jeff King | edf563f | 2009-09-09 11:43:03 | [diff] [blame] | 12 | extern int advice_status_hints; |
| Nguyễn Thái Ngọc Duy | 6a38ef2 | 2013-03-13 12:59:16 | [diff] [blame] | 13 | extern int advice_status_u_option; |
| Matthieu Moy | 4c371f9 | 2009-11-22 22:26:17 | [diff] [blame] | 14 | extern int advice_commit_before_merge; |
| Matthieu Moy | d38a30d | 2010-01-12 09:54:44 | [diff] [blame] | 15 | extern int advice_resolve_conflict; |
| Jeff King | b706fcf | 2010-01-13 20:17:08 | [diff] [blame] | 16 | extern int advice_implicit_identity; |
| Junio C Hamano | 13be3e3 | 2010-01-30 06:03:24 | [diff] [blame] | 17 | extern int advice_detached_head; |
| Jeff King | caa2036 | 2013-04-02 19:05:12 | [diff] [blame] | 18 | extern int advice_set_upstream_failure; |
| Nguyễn Thái Ngọc Duy | 798c35f | 2013-05-29 12:12:42 | [diff] [blame] | 19 | extern int advice_object_name_warning; |
| Mathieu Lienard--Mayor | 7e30944 | 2013-06-12 08:06:44 | [diff] [blame] | 20 | extern int advice_rm_hints; |
| Jeff King | 7519443 | 2009-09-09 11:38:58 | [diff] [blame] | 21 | |
| 22 | int git_default_advice_config(const char *var, const char *value); |
| Jeff King | 4621085 | 2013-07-10 00:18:40 | [diff] [blame] | 23 | __attribute__((format (printf, 1, 2))) |
| Ramkumar Ramachandra | 38ef61c | 2011-08-04 10:38:59 | [diff] [blame] | 24 | void advise(const char *advice, ...); |
| 25 | int error_resolve_conflict(const char *me); |
| Matthieu Moy | d38a30d | 2010-01-12 09:54:44 | [diff] [blame] | 26 | extern void NORETURN die_resolve_conflict(const char *me); |
| Paul Tan | 4a4cf9e | 2015-06-18 10:54:04 | [diff] [blame] | 27 | void NORETURN die_conclude_merge(void); |
| Nguyễn Thái Ngọc Duy | 2857093 | 2012-01-16 09:46:16 | [diff] [blame] | 28 | void detach_advice(const char *new_name); |
| Matthieu Moy | d38a30d | 2010-01-12 09:54:44 | [diff] [blame] | 29 | |
| Jeff King | 7519443 | 2009-09-09 11:38:58 | [diff] [blame] | 30 | #endif /* ADVICE_H */ |