aboutsummaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-08-16 04:13:13 -0700
committerJunio C Hamano <gitster@pobox.com>2009-08-16 04:13:13 -0700
commit14683af812ee0b19c416223287c6e330dbdc9ffc (patch)
tree8f6aba92fa7a9e1f088129b1ebc4f6082d4c8d31 /dir.h
parentb21f9e7f860620571667fba33ed511bed59dfb14 (diff)
parenta0f4afbe87ddda7902e36350d163dea146166550 (diff)
downloadgit-14683af812ee0b19c416223287c6e330dbdc9ffc.tar.gz
git-14683af812ee0b19c416223287c6e330dbdc9ffc.tar.xz
Merge branch 'jc/maint-clean-nested-dir-safety'
* jc/maint-clean-nested-dir-safety: clean: require double -f options to nuke nested git repository and work tree
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h5
1 files changed, 4 insertions, 1 deletions
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);