diff options
| author | Russell Belfer <rb@github.com> | 2012-06-19 14:27:02 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-06-19 14:27:02 -0700 |
| commit | da825c92d92433240ceeaea70d7618395bcfb83d (patch) | |
| tree | 1cdf8d9c08d101d0ebc40b7e07eb4ba1c41611b2 /tests-clar/clar_libgit2.h | |
| parent | 1b0ef5aa03fad68105784d5d4d87592ce005e03a (diff) | |
| download | libgit2-da825c92d92433240ceeaea70d7618395bcfb83d.tar.gz | |
Make index add/append support core.filemode flag
This fixes git_index_add and git_index_append to behave more like
core git, preserving old filemode data in the index when adding
and/or appending with core.filemode = false.
This also has placeholder support for core.symlinks and
core.ignorecase, but those flags are not implemented (well,
symlinks has partial support for preserving mode information in
the same way that git does, but it isn't tested).
Diffstat (limited to 'tests-clar/clar_libgit2.h')
| -rw-r--r-- | tests-clar/clar_libgit2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/clar_libgit2.h b/tests-clar/clar_libgit2.h index a3b03bbb3..eab6c3d3e 100644 --- a/tests-clar/clar_libgit2.h +++ b/tests-clar/clar_libgit2.h @@ -38,7 +38,7 @@ void cl_git_mkfile(const char *filename, const char *content); void cl_git_append2file(const char *filename, const char *new_content); void cl_git_rewritefile(const char *filename, const char *new_content); -void cl_git_write2file(const char *filename, const char *new_content, int mode); +void cl_git_write2file(const char *filename, const char *new_content, int flags, unsigned int mode); bool cl_toggle_filemode(const char *filename); bool cl_is_chmod_supported(void); |
