]> git.ipfire.org Git - thirdparty/git.git/commit
refs: pass ref store when detecting dangling symrefs
authorPatrick Steinhardt <ps@pks.im>
Fri, 17 May 2024 08:18:53 +0000 (10:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2024 17:33:38 +0000 (10:33 -0700)
commit330a2ae60b2c6867ff2a94d54a64ace9bc94990e
treeb603de59977cf76596012cc4deaccf10e4f7d85c
parent8378c9d27bace61d3fb238259604045a8997387b
refs: pass ref store when detecting dangling symrefs

Both `warn_dangling_symref()` and `warn_dangling_symrefs()` derive the
ref store via `the_repository`. Adapt them to instead take in the ref
store as a parameter. While at it, rename the functions to have a `ref_`
prefix to align them with other functions that take a ref store.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
builtin/remote.c
refs.c
refs.h