diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-10 00:25:46 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-10 00:25:46 +0200 |
commit | cde9a64ea35ceeaa5e8dd2da2662445510fe651c (patch) | |
tree | 9b4d154625ca23d792cda8f8a65419adcfba1fc7 /advice.c | |
parent | Merge branch 'jh/status-aheadbehind' (diff) | |
parent | pull: add --[no-]show-forced-updates passthrough (diff) | |
download | git-cde9a64ea35ceeaa5e8dd2da2662445510fe651c.tar.xz git-cde9a64ea35ceeaa5e8dd2da2662445510fe651c.zip |
Merge branch 'ds/fetch-disable-force-notice'
"git fetch" and "git pull" reports when a fetch results in
non-fast-forward updates to let the user notice unusual situation.
The commands learned "--no-shown-forced-updates" option to disable
this safety feature.
* ds/fetch-disable-force-notice:
pull: add --[no-]show-forced-updates passthrough
fetch: warn about forced updates in branch listing
fetch: add --[no-]show-forced-updates argument
Diffstat (limited to 'advice.c')
-rw-r--r-- | advice.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include "color.h" #include "help.h" +int advice_fetch_show_forced_updates = 1; int advice_push_update_rejected = 1; int advice_push_non_ff_current = 1; int advice_push_non_ff_matching = 1; @@ -60,6 +61,7 @@ static struct { const char *name; int *preference; } advice_config[] = { + { "fetchShowForcedUpdates", &advice_fetch_show_forced_updates }, { "pushUpdateRejected", &advice_push_update_rejected }, { "pushNonFFCurrent", &advice_push_non_ff_current }, { "pushNonFFMatching", &advice_push_non_ff_matching }, |