summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorAlexander Potashev <aspotashev@gmail.com>2009-01-11 12:19:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-01-11 21:26:29 (GMT)
commit55892d23981917aefdb387ad7d0429f90cbd446a (patch)
tree72b1aab773fa37b50d07991de8a227994f1d6a7b /dir.h
parent8ca12c0d62c0be4a4987c4a936467ea2a92e915a (diff)
downloadgit-55892d23981917aefdb387ad7d0429f90cbd446a.zip
git-55892d23981917aefdb387ad7d0429f90cbd446a.tar.gz
git-55892d23981917aefdb387ad7d0429f90cbd446a.tar.bz2
Allow cloning to an existing empty directory
The die() message updated accordingly. The previous behaviour was to only allow cloning when the destination directory doesn't exist. [jc: added trivial tests] Signed-off-by: Alexander Potashev <aspotashev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index 02875ec..bdc2d47 100644
--- a/dir.h
+++ b/dir.h
@@ -84,6 +84,8 @@ static inline int is_dot_or_dotdot(const char *name)
(name[1] == '.' && name[2] == '\0')));
}
+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);