summaryrefslogtreecommitdiff
path: root/advice.c
diff options
context:
space:
mode:
authorAndrew Wong <andrew.kw.w@gmail.com>2014-03-14 00:37:51 -0400
committerJunio C Hamano <gitster@pobox.com>2014-03-17 14:54:16 -0700
commitbd28eaf2977a5ae9aab85c7dda07d4e2476ae3c0 (patch)
tree31bae6b59c5e8471d5cfcadc8957ea2c5d09d5f5 /advice.c
parent1c43d1ab88d18eb13e12215552dceb26e18500b7 (diff)
downloadgit-aw/merge-help-messages.tar.gz
merge: advise user to use "git merge --abort" to abort mergesaw/merge-help-messages
Print message during "git merge" and "git status". Add a new "mergeHints" advice to silence these messages. Signed-off-by: Andrew Wong <andrew.kw.w@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.c')
-rw-r--r--advice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/advice.c b/advice.c
index 3eca9f5ffd..bfbb6b68fb 100644
--- a/advice.c
+++ b/advice.c
@@ -16,6 +16,7 @@ int advice_detached_head = 1;
int advice_set_upstream_failure = 1;
int advice_object_name_warning = 1;
int advice_rm_hints = 1;
+int advice_merge_hints = 1;
static struct {
const char *name;
@@ -37,6 +38,7 @@ static struct {
{ "setupstreamfailure", &advice_set_upstream_failure },
{ "objectnamewarning", &advice_object_name_warning },
{ "rmhints", &advice_rm_hints },
+ { "mergehints", &advice_merge_hints },
/* make this an alias for backward compatibility */
{ "pushnonfastforward", &advice_push_update_rejected }