]> git.ipfire.org Git - thirdparty/git.git/commit
fetch set_head: refactor to use remote directly
authorBence Ferdinandy <bence@ferdinandy.com>
Sun, 26 Jan 2025 22:02:10 +0000 (23:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jan 2025 16:16:45 +0000 (08:16 -0800)
commit638060dcb95ed7ef3b2f6e6038ac12744d8ba238
tree001616c2a8e96b6f8f3e845ada91d8c2c2ad735b
parentfbe8d3079d4a96aeb4e4529cc93cc0043b759a05
fetch set_head: refactor to use remote directly

As a preparatory step to use even more properties from the remote
struct, refactor set_head to take the entire struct as a parameter,
instead of the necessary bits. This also allows consolidating the use of
gtransport->remote in set_head, making the access of the remote's
properties consistent in the function.

Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c