MCPcopy Create free account
hub / github.com/git/git / remove_empty_directories

Function remove_empty_directories

refs/files-backend.c:1184–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182}
1183
1184static int remove_empty_directories(struct strbuf *path)
1185{
1186 /*
1187 * we want to create a file but there is a directory there;
1188 * if that is an empty directory (or a directory that contains
1189 * only empty directories), remove them.
1190 */
1191 return remove_dir_recursively(path, REMOVE_DIR_EMPTY_ONLY);
1192}
1193
1194struct create_reflock_cb {
1195 struct lock_file *lk;

Callers 2

files_copy_or_rename_refFunction · 0.85
commit_refFunction · 0.85

Calls 1

remove_dir_recursivelyFunction · 0.85

Tested by

no test coverage detected