]> git.ipfire.org Git - thirdparty/git.git/commit
refs: move `original_update_refname` to 'refs.c'
authorKarthik Nayak <karthik.188@gmail.com>
Tue, 7 May 2024 12:58:55 +0000 (14:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 May 2024 15:51:49 +0000 (08:51 -0700)
commite9965ba477de5df7546773920c581569bb54f315
treebec4a69a4bbeb6ba070457f0fd0c8f3fb25bb344
parenta8ae923f85da6434c3faf9c39719d6d5e5c77e65
refs: move `original_update_refname` to 'refs.c'

The files backend and the reftable backend implement
`original_update_refname` to obtain the original refname of the update.
Move it out to 'refs.c' and only expose it internally to the refs
library. This will be used in an upcoming commit to also introduce
another common functionality for the two backends.

We also rename the function to `ref_update_original_update_refname` to
keep it consistent with the upcoming other 'ref_update_*' functions
that'll be introduced.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs/files-backend.c
refs/refs-internal.h
refs/reftable-backend.c