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

Function lookup_tag

tag.c:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97struct tag *lookup_tag(struct repository *r, const struct object_id *oid)
98{
99 struct object *obj = lookup_object(r, oid);
100 if (!obj)
101 return create_object(r, oid, alloc_tag_node(r));
102 return object_as_type(obj, OBJ_TAG, 0);
103}
104
105static timestamp_t parse_tag_date(const char *buf, const char *tail)
106{

Callers 10

parse_tag_bufferFunction · 0.85
lookup_object_by_typeFunction · 0.85
parse_object_bufferFunction · 0.85
show_one_mergetagFunction · 0.85
show_ambiguous_objectFunction · 0.85
setup_pending_objectsFunction · 0.85
check_one_mergetagFunction · 0.85
replace_nameFunction · 0.85
append_nameFunction · 0.85
add_tag_chainFunction · 0.85

Calls 4

lookup_objectFunction · 0.85
create_objectFunction · 0.85
alloc_tag_nodeFunction · 0.85
object_as_typeFunction · 0.85

Tested by

no test coverage detected