diff options
author | Russell Belfer <rb@github.com> | 2013-05-21 00:41:39 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-05-21 00:41:39 +0400 |
commit | 4742148d54334629495eeaf0382e6c9da8786f17 (patch) | |
tree | 9fe01ef4d5b558c028432d4648f4b03c6fb5946c /src/fileops.h | |
parent | 9be5be47fb1d9bc08e25b30c05dbf48739710062 (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.h | 3 |
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 * |