This isolates the implementation detail of using the decoration code to
our put/get functions.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
};
static int b = 0;
struct strbuf *buf;
- char *name = NULL;
-
- if (options->object_names)
- name = lookup_decoration(options->object_names, obj);
+ const char *name = fsck_get_object_name(options, obj);
buf = bufs + b;
b = (b + 1) % ARRAY_SIZE(bufs);