* Do not use this for inspecting *tracked* content. When path is a * symlink to a directory, we do not want to say it is a directory when * dealing with tracked content in the working tree. */
| 8 | * dealing with tracked content in the working tree. |
| 9 | */ |
| 10 | int is_directory(const char *path) |
| 11 | { |
| 12 | struct stat st; |
| 13 | return (!stat(path, &st) && S_ISDIR(st.st_mode)); |
| 14 | } |
| 15 | |
| 16 | /* removes the last path component from 'path' except if 'path' is root */ |
| 17 | static void strip_last_component(struct strbuf *path) |
no test coverage detected