• Jeff King's avatar
    remote.c: make singular free_ref() public · 1027186f
    Jeff King authored
    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: 's avatarJeff King <peff@peff.net>
    Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
remote.c 57.4 KB