X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.h;h=278ee42295ed3724801d56eb65c86b29002486aa;hb=cf2ab916afa4231f7e9db31796e7c0f712ff6ad1;hp=2df15defb6720a742282f24721233c4816deceb6;hpb=c484166374218c4af063c5b646af2a6e8fd7845e;p=git.git diff --git a/dir.h b/dir.h index 2df15defb..278ee4229 100644 --- a/dir.h +++ b/dir.h @@ -81,4 +81,7 @@ extern int is_inside_dir(const char *dir); extern void setup_standard_excludes(struct dir_struct *dir); extern int remove_dir_recursively(struct strbuf *path, int only_empty); +/* tries to remove the path with empty directories along it, ignores ENOENT */ +extern int remove_path(const char *path); + #endif