X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.h;h=320b6a2f38b9289f910141148b5dddb4cb80815f;hb=42fa6df99fe1f0439244893e81efad0cc4524c3d;hp=a6314464f9e0d896f131e08434228d5b1130a4f5;hpb=e532e7b08f3de1a590db909c2c93532c2a39e9ae;p=git.git diff --git a/dir.h b/dir.h index a6314464f..320b6a2f3 100644 --- a/dir.h +++ b/dir.h @@ -88,7 +88,10 @@ static inline int is_dot_or_dotdot(const char *name) extern int is_empty_dir(const char *dir); extern void setup_standard_excludes(struct dir_struct *dir); -extern int remove_dir_recursively(struct strbuf *path, int only_empty); + +#define REMOVE_DIR_EMPTY_ONLY 01 +#define REMOVE_DIR_KEEP_NESTED_GIT 02 +extern int remove_dir_recursively(struct strbuf *path, int flag); /* tries to remove the path with empty directories along it, ignores ENOENT */ extern int remove_path(const char *path);