MCPcopy Index your code
hub / github.com/git/git / type_name

Function type_name

object.c:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37const char *type_name(unsigned int type)
38{
39 if (type >= ARRAY_SIZE(object_type_strings))
40 return NULL;
41 return object_type_strings[type];
42}
43
44int type_from_string_gently(const char *str, ssize_t len, int gentle)
45{

Callers 15

test_bitmap_typeFunction · 0.85
gpg_verify_tagFunction · 0.85
grab_common_valuesFunction · 0.85
grab_tag_valuesFunction · 0.85
check_has_commitFunction · 0.85
format_object_headerFunction · 0.85
add_recent_objectFunction · 0.85
sequencer_pick_revisionsFunction · 0.85
object_as_typeFunction · 0.85
repo_peel_to_typeFunction · 0.85
repo_get_commit_bufferFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_bitmap_typeFunction · 0.68
emit_blockFunction · 0.68