diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-04 02:04:49 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-04 02:04:49 +0300 |
commit | 973e20b83f38d0a640d4e0478ddbd50dfa98daf1 (patch) | |
tree | 6cf89c7e061f25e00153b64af2dc1736c98337f9 /builtin/gc.c | |
parent | 6cd7f9dc297d096e5b7787db8d0ad8ca05a1b296 (diff) | |
parent | 36a317929b8f0c67d77d54235f2d20751c576cbb (diff) |
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 'builtin/gc.c')
-rw-r--r-- | builtin/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/gc.c b/builtin/gc.c index ef7a155479..4c40594d66 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -769,7 +769,7 @@ static int dfs_on_ref(const char *refname, struct commit_list *stack = NULL; struct commit *commit; - if (!peel_ref(refname, &peeled)) + if (!peel_iterated_oid(oid, &peeled)) oid = &peeled; if (oid_object_info(the_repository, oid, NULL) != OBJ_COMMIT) return 0; |