MCPcopy Create free account
hub / github.com/git/git / fsck_get_object_name

Function fsck_get_object_name

fsck.c:301–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301const char *fsck_get_object_name(struct fsck_options *options,
302 const struct object_id *oid)
303{
304 khiter_t pos;
305 if (!options->object_names)
306 return NULL;
307 pos = kh_get_oid_map(options->object_names, *oid);
308 if (pos >= kh_end(options->object_names))
309 return NULL;
310 return kh_value(options->object_names, pos);
311}
312
313void fsck_put_object_name(struct fsck_options *options,
314 const struct object_id *oid,

Callers 4

fsck_describe_objectFunction · 0.85
fsck_walk_treeFunction · 0.85
fsck_walk_commitFunction · 0.85
fsck_walk_tagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected