diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-07-06 18:08:13 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-07-06 18:08:13 +0200 |
commit | 858dba58bf6eaaf1293ec0da03a02f95f8f2e0b9 (patch) | |
tree | 2aca041ca299d93ce5add3a16485fe1a41d49469 /src/fileops.h | |
parent | b8e2db5f94d2a5d93bb4a328cbff5c26f65a5ebb (diff) | |
download | libgit2-858dba58bf6eaaf1293ec0da03a02f95f8f2e0b9.tar.gz |
refs: Cleanup reference renaming
`git_futils_rmdir_r`: rename, clean up.
`git_reference_rename`: cleanup. Do not use 3x4096 buffers on the stack
or things will get ugly very fast. We can reuse the same buffer.
Diffstat (limited to 'src/fileops.h')
-rw-r--r-- | src/fileops.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/fileops.h b/src/fileops.h index 48071d6d1..f1c169c3a 100644 --- a/src/fileops.h +++ b/src/fileops.h @@ -80,7 +80,7 @@ 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); +extern int git_futils_rmdir_r(const char *path, int force); /** * Create and open a temporary file with a `_git2_` suffix @@ -104,14 +104,6 @@ extern int git_futils_mv_withpath(const char *from, const char *to); */ extern git_off_t git_futils_filesize(git_file fd); -/* Taken from git.git */ -GIT_INLINE(int) is_dot_or_dotdot(const char *name) -{ - return (name[0] == '.' && - (name[1] == '\0' || - (name[1] == '.' && name[2] == '\0'))); -} - /** * Read-only map all or part of a file into memory. * When possible this function should favor a virtual memory |