]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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)
"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

1  2 
advice.c
builtin/fetch.c
builtin/remote.c
t/t5505-remote.sh
t/t5510-fetch.sh

diff --cc advice.c
Simple merge
diff --cc builtin/fetch.c
Simple merge
Simple merge
Simple merge
Simple merge