From: Junio C Hamano Date: Tue, 9 Jul 2019 22:25:46 +0000 (-0700) Subject: Merge branch 'ds/fetch-disable-force-notice' X-Git-Tag: v2.23.0-rc0~54 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/cde9a64ea35ceeaa5e8dd2da2662445510fe651c?hp=-c 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 --- cde9a64ea35ceeaa5e8dd2da2662445510fe651c diff --combined Documentation/config/advice.txt index 0103faa417,1f1e847fb4..ee85c536ce --- a/Documentation/config/advice.txt +++ b/Documentation/config/advice.txt @@@ -4,6 -4,10 +4,10 @@@ advice.*: can tell Git that you do not need help by setting these to 'false': + -- + fetchShowForcedUpdates:: + Advice shown when linkgit:git-fetch[1] takes a long time + to calculate forced updates after ref updates, or to warn + that the check is disabled. pushUpdateRejected:: Set this variable to 'false' if you want to disable 'pushNonFFCurrent', @@@ -37,19 -41,12 +41,19 @@@ we can still suggest that the user push to either refs/heads/* or refs/tags/* based on the type of the source object. + statusAheadBehind:: + Shown when linkgit:git-status[1] computes the ahead/behind + counts for a local ref compared to its remote tracking ref, + and that calculation takes longer than expected. Will not + appear if `status.aheadBehind` is false or the option + `--no-ahead-behind` is given. statusHints:: Show directions on how to proceed from the current state in the output of linkgit:git-status[1], in the template shown when writing commit messages in linkgit:git-commit[1], and in the help message shown - by linkgit:git-checkout[1] when switching branch. + by linkgit:git-switch[1] or + linkgit:git-checkout[1] when switching branch. statusUoption:: Advise to consider using the `-u` option to linkgit:git-status[1] when the command takes more than 2 seconds to enumerate untracked @@@ -69,14 -66,12 +73,14 @@@ your information is guessed from the system username and domain name. detachedHead:: - Advice shown when you used linkgit:git-checkout[1] to - move to the detach HEAD state, to instruct how to create - a local branch after the fact. + Advice shown when you used + linkgit:git-switch[1] or linkgit:git-checkout[1] + to move to the detach HEAD state, to instruct how to + create a local branch after the fact. checkoutAmbiguousRemoteBranchName:: Advice shown when the argument to - linkgit:git-checkout[1] ambiguously resolves to a + linkgit:git-checkout[1] and linkgit:git-switch[1] + ambiguously resolves to a remote tracking branch on more than one remote in situations where an unambiguous argument would have otherwise caused a remote-tracking branch to be diff --combined Documentation/fetch-options.txt index 592f391298,5801d23ae4..3c9b4f9e09 --- a/Documentation/fetch-options.txt +++ b/Documentation/fetch-options.txt @@@ -88,10 -88,6 +88,10 @@@ ifndef::git-pull[ Allow several and arguments to be specified. No s may be specified. +--[no-]auto-gc:: + Run `git gc --auto` at the end to perform garbage collection + if needed. This is enabled by default. + -p:: --prune:: Before fetching, remove any remote-tracking references that no @@@ -225,6 -221,19 +225,19 @@@ endif::git-pull[ When multiple `--server-option=