Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-05-21 00:41:39 +0400
committerRussell Belfer <rb@github.com>2013-05-21 00:41:39 +0400
commit4742148d54334629495eeaf0382e6c9da8786f17 (patch)
tree9fe01ef4d5b558c028432d4648f4b03c6fb5946c /src/fileops.h
parent9be5be47fb1d9bc08e25b30c05dbf48739710062 (diff)
Add more diff rename detection tests
This adds a bunch more rename detection tests including checks vs the working directory, the new exact match options, some more whitespace variants, etc. This also adds a git_futils_writebuffer helper function and uses it in checkout. This is mainly added because I wanted an easy way to write out a git_buf to disk inside my test code.
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index 3e214aab1..f4e059c83 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -22,6 +22,9 @@ extern int git_futils_readbuffer_updated(
git_buf *obj, const char *path, time_t *mtime, size_t *size, int *updated);
extern int git_futils_readbuffer_fd(git_buf *obj, git_file fd, size_t len);
+extern int git_futils_writebuffer(
+ const git_buf *buf, const char *path, int open_flags, mode_t mode);
+
/**
* File utils
*