refs API: post-migration API renaming [1/2]
commit25a33b33424cd6c8e2c7db0f0c4b1ba01415ce38
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 16 Oct 2021 09:39:26 +0000 (16 11:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Oct 2021 18:17:04 +0000 (16 11:17 -0700)
treeba2cf3052a24b462bd0290706e9fe7fecaa2d52e
parent4755d7dff7a27f431493926541fd6aab2e860aa4
refs API: post-migration API renaming [1/2]

In preceding commits all callers of refs_resolve_ref_unsafe() were
migrated to the transitory refs_werrres_ref_unsafe() function.

As a first step in getting rid of it let's remove the old function
from the public API (it went unused in a preceding commit).

We then provide both a coccinelle rule to do the rename, and a macro
to avoid breaking the existing callers.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/coccinelle/refs.pending.cocci [new file with mode: 0644]
refs.c
refs.h