]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
remote.c: make singular free_ref() public
authorJeff King <peff@peff.net>
Sat, 13 Apr 2019 05:54:31 +0000 (01:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2019 05:00:52 +0000 (14:00 +0900)
commit1027186fdd3bb55b2149693550542e0647feb7a3
treec836b7e8598cc47ab27f2eae85cb130051a6375e
parent259eddde6a861cbff8186f37170f09566730f8eb
remote.c: make singular free_ref() public

We provide a free_refs() function to free a list, but there's no easy
way for a caller to free a single ref. Let's make our singular
free_ref() function public. Since its name is so similar to the
list-freeing free_refs(), and because both of those functions have the
same signature, it might be easy to accidentally use the wrong one.
Let's call the singular version the more verbose "free_one_ref()" to
distinguish it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c
remote.h