summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-02-03 15:04:49 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-03 15:04:49 -0800
commit973e20b83f38d0a640d4e0478ddbd50dfa98daf1 (patch)
tree6cf89c7e061f25e00153b64af2dc1736c98337f9 /t/helper
parentMerge branch 'js/skip-dashed-built-ins-from-config-mak' (diff)
parentrefs: switch peel_ref() to peel_iterated_oid() (diff)
downloadtgif-973e20b83f38d0a640d4e0478ddbd50dfa98daf1.tar.xz
Merge branch 'jk/peel-iterated-oid'
The peel_ref() API has been replaced with peel_iterated_oid(). * jk/peel-iterated-oid: refs: switch peel_ref() to peel_iterated_oid()
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-ref-store.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c
index 759e69dc54..bba5f841c6 100644
--- a/t/helper/test-ref-store.c
+++ b/t/helper/test-ref-store.c
@@ -72,18 +72,6 @@ static int cmd_pack_refs(struct ref_store *refs, const char **argv)
return refs_pack_refs(refs, flags);
}
-static int cmd_peel_ref(struct ref_store *refs, const char **argv)
-{
- const char *refname = notnull(*argv++, "refname");
- struct object_id oid;
- int ret;
-
- ret = refs_peel_ref(refs, refname, &oid);
- if (!ret)
- puts(oid_to_hex(&oid));
- return ret;
-}
-
static int cmd_create_symref(struct ref_store *refs, const char **argv)
{
const char *refname = notnull(*argv++, "refname");
@@ -255,7 +243,6 @@ struct command {
static struct command commands[] = {
{ "pack-refs", cmd_pack_refs },
- { "peel-ref", cmd_peel_ref },
{ "create-symref", cmd_create_symref },
{ "delete-refs", cmd_delete_refs },
{ "rename-ref", cmd_rename_ref },