]> git.ipfire.org Git - thirdparty/git.git/commit
refs: move ref name helpers around
authorJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 02:32:37 +0000 (11:32 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Dec 2024 03:38:49 +0000 (12:38 +0900)
commit5bcbde9e49c14f4e47a0ed5fc60470f3d4447efd
tree517f00998353e4a7670be3457d1b91f3dba2a548
parent92999a42db1c5f43f330e4f2bca4026b5b81576f
refs: move ref name helpers around

strbuf_branchname(), strbuf_check_{branch,tag}_ref() are helper
functions to deal with branch and tag names, and the fact that they
happen to use strbuf to hold the name of a branch or a tag is not
essential.  These functions fit better in the refs API than strbuf
API, the latter of which is about string manipulations.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/tag.c
object-name.c
refs.c
refs.h
strbuf.h