blob: d0154048431c773b9bf0ec450478a93d5ede06c0 [file] [log] [blame]
Jeff King75194432009-09-09 07:38:58 -04001#ifndef ADVICE_H
2#define ADVICE_H
3
Matthieu Moyd38a30d2010-01-12 10:54:44 +01004#include "git-compat-util.h"
5
Derrick Stolee377444b2019-06-18 13:25:27 -07006extern int advice_fetch_show_forced_updates;
Chris Rorvick11845642012-12-02 21:27:50 -06007extern int advice_push_update_rejected;
Christopher Tiwaldf25950f2012-03-20 00:31:33 -04008extern int advice_push_non_ff_current;
Christopher Tiwaldf25950f2012-03-20 00:31:33 -04009extern int advice_push_non_ff_matching;
Chris Rorvickb4505682012-12-02 21:27:51 -060010extern int advice_push_already_exists;
Junio C Hamano75e5c0d2013-01-23 13:55:30 -080011extern int advice_push_fetch_first;
12extern int advice_push_needs_force;
Ævar Arnfjörð Bjarmasondd8dd302018-11-13 19:52:43 +000013extern int advice_push_unqualified_ref_name;
Jeff Kingedf563f2009-09-09 07:43:03 -040014extern int advice_status_hints;
Nguyễn Thái Ngọc Duy6a38ef22013-03-13 19:59:16 +070015extern int advice_status_u_option;
Jeff Hostetler0a535612019-06-18 13:21:27 -070016extern int advice_status_ahead_behind_warning;
Matthieu Moy4c371f92009-11-22 23:26:17 +010017extern int advice_commit_before_merge;
Ben Peart649bf3a2018-10-23 15:04:23 -040018extern int advice_reset_quiet_warning;
Matthieu Moyd38a30d2010-01-12 10:54:44 +010019extern int advice_resolve_conflict;
Rohit Ashiwal6a1f9042019-07-02 14:41:25 +053020extern int advice_sequencer_in_use;
Jeff Kingb706fcf2010-01-13 15:17:08 -050021extern int advice_implicit_identity;
Junio C Hamano13be3e32010-01-29 22:03:24 -080022extern int advice_detached_head;
Jeff Kingcaa20362013-04-02 15:05:12 -040023extern int advice_set_upstream_failure;
Nguyễn Thái Ngọc Duy798c35f2013-05-29 19:12:42 +070024extern int advice_object_name_warning;
Nguyễn Thái Ngọc Duy431bb232018-05-26 15:55:27 +020025extern int advice_amworkdir;
Mathieu Lienard--Mayor7e309442013-06-12 10:06:44 +020026extern int advice_rm_hints;
Jeff King53213992017-06-14 06:58:22 -040027extern int advice_add_embedded_repo;
Damien Mariéf805a002017-10-06 08:07:55 +000028extern int advice_ignored_hook;
Lars Schneiderabfb04d2017-12-07 16:16:41 +010029extern int advice_waiting_for_editor;
Johannes Schindelinf9f99b32018-04-29 00:44:44 +020030extern int advice_graft_file_deprecated;
Ævar Arnfjörð Bjarmasonad8d5102018-06-05 14:40:48 +000031extern int advice_checkout_ambiguous_remote_branch_name;
Denton Liueea9c1e2019-04-04 11:25:15 -070032extern int advice_nested_tag;
Jeff King75194432009-09-09 07:38:58 -040033
34int git_default_advice_config(const char *var, const char *value);
Jeff King46210852013-07-09 20:18:40 -040035__attribute__((format (printf, 1, 2)))
Ramkumar Ramachandra38ef61c2011-08-04 16:08:59 +053036void advise(const char *advice, ...);
37int error_resolve_conflict(const char *me);
Denton Liu55454422019-04-29 04:28:14 -040038void NORETURN die_resolve_conflict(const char *me);
Paul Tan4a4cf9e2015-06-18 18:54:04 +080039void NORETURN die_conclude_merge(void);
Nguyễn Thái Ngọc Duy28570932012-01-16 16:46:16 +070040void detach_advice(const char *new_name);
Matthieu Moyd38a30d2010-01-12 10:54:44 +010041
Jeff King75194432009-09-09 07:38:58 -040042#endif /* ADVICE_H */