| 143 | } |
| 144 | |
| 145 | static 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. |
no outgoing calls
no test coverage detected