diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-07-03 22:27:05 +0200 |
|---|---|---|
| committer | schu <schu-github@schulog.org> | 2011-07-06 12:25:27 +0200 |
| commit | 1b938a58267f0a11240f0e7da7233607c6b78a2d (patch) | |
| tree | 1d4188ac05bfb16bbee7945a593a428fdc4cb743 /src/fileops.h | |
| parent | 1ee5fd903d00930aab08edecc6b409a34761cf7e (diff) | |
| download | libgit2-1b938a58267f0a11240f0e7da7233607c6b78a2d.tar.gz | |
Remove duplicated recursive directory removal related code
Diffstat (limited to 'src/fileops.h')
| -rw-r--r-- | src/fileops.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fileops.h b/src/fileops.h index cd3ff2f10..48071d6d1 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -80,6 +80,8 @@ extern int git_futils_mkdir_r(const char *path, int mode); */ extern int git_futils_mkpath2file(const char *path); +extern int git_futils_rmdir_recurs(const char *path, int force_removal_of_non_empty_directory); + /** * Create and open a temporary file with a `_git2_` suffix */ @@ -102,9 +104,6 @@ extern int git_futils_mv_withpath(const char *from, const char *to); */ extern git_off_t git_futils_filesize(git_file fd); -/* Recursively remove an empty directory structure */ -extern int git_futils_rmdir_recurs(const char *path); - /* Taken from git.git */ GIT_INLINE(int) is_dot_or_dotdot(const char *name) { |
