]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'bf/fetch-set-head-config'
authorJunio C Hamano <gitster@pobox.com>
Thu, 19 Dec 2024 18:58:29 +0000 (10:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Dec 2024 18:58:30 +0000 (10:58 -0800)
commita1f34d5955035dc64f2e25da0ba2cc0a0c73c21c
tree0ef621c787630848212eb27671891bc9ba2a2a58
parentae75cefd94075045edeb1d23283a47e4e48a9360
parent012bc566bad79876f4809d1e730a348b419772d0
Merge branch 'bf/fetch-set-head-config'

"git fetch" honors "remote.<remote>.followRemoteHEAD" settings to
tweak the remote-tracking HEAD in "refs/remotes/<remote>/HEAD".

* bf/fetch-set-head-config:
  remote set-head: set followRemoteHEAD to "warn" if "always"
  fetch set_head: add warn-if-not-$branch option
  fetch set_head: move warn advice into advise_if_enabled
  fetch: add configuration for set_head behaviour
advice.c
builtin/fetch.c
builtin/remote.c
t/t5505-remote.sh
t/t5510-fetch.sh