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

Function canon_mode

object.h:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145static inline unsigned int canon_mode(unsigned int mode)
146{
147 if (S_ISREG(mode))
148 return S_IFREG | ce_permissions(mode);
149 if (S_ISLNK(mode))
150 return S_IFLNK;
151 if (S_ISDIR(mode))
152 return S_IFDIR;
153 return S_IFGITLINK;
154}
155
156/*
157 * The object type is stored in 3 bits.

Callers 9

decode_tree_entryFunction · 0.85
fake_working_tree_commitFunction · 0.85
write_archive_entriesFunction · 0.85
show_patch_diffFunction · 0.85
builtin_object_mode_attrFunction · 0.85
parse_mode_lineFunction · 0.85
fill_filespecFunction · 0.85
builtin_diff_b_fFunction · 0.85
builtin_diff_blobsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected