diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-03 15:04:49 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-03 15:04:49 -0800 |
commit | 973e20b83f38d0a640d4e0478ddbd50dfa98daf1 (patch) | |
tree | 6cf89c7e061f25e00153b64af2dc1736c98337f9 /t/helper | |
parent | Merge branch 'js/skip-dashed-built-ins-from-config-mak' (diff) | |
parent | refs: switch peel_ref() to peel_iterated_oid() (diff) | |
download | tgif-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.c | 13 |
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 }, |