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

Function create_ce_mode

object.h:134–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133#define ce_permissions(mode) (((mode) & 0100) ? 0755 : 0644)
134static inline unsigned int create_ce_mode(unsigned int mode)
135{
136 if (S_ISLNK(mode))
137 return S_IFLNK;
138 if (S_ISSPARSEDIR(mode))
139 return S_IFDIR;
140 if (S_ISDIR(mode) || S_ISGITLINK(mode))
141 return S_IFGITLINK;
142 return S_IFREG | ce_permissions(mode);
143}
144
145static inline unsigned int canon_mode(unsigned int mode)
146{

Callers 15

initialize_attr_indexFunction · 0.85
create_ce_entryFunction · 0.85
fake_working_tree_commitFunction · 0.85
get_modeFunction · 0.85
ce_mode_from_statFunction · 0.85
add_index_fileFunction · 0.85
add_to_indexFunction · 0.85
make_cache_entryFunction · 0.85
read_one_entry_optFunction · 0.85
update_someFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected