diff options
| author | Russell Belfer <rb@github.com> | 2013-08-28 16:44:04 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-09-17 09:30:06 -0700 |
| commit | 85d5481206a932d747b2d5587b6d4c7f69993ba6 (patch) | |
| tree | a66d55c92d70668509efce5b231517467a3f8b7e /src/odb.h | |
| parent | 0cf77103b218ad3622aff34f3296db1bdd5f0df9 (diff) | |
| download | libgit2-85d5481206a932d747b2d5587b6d4c7f69993ba6.tar.gz | |
Create public filter object and use it
This creates include/sys/filter.h with a basic definition of a
git_filter and then converts the internal code to use it. There
are related internal objects (git_filter_list) that we will want
to publish at some point, but this is a first step.
Diffstat (limited to 'src/odb.h')
| -rw-r--r-- | src/odb.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -14,6 +14,7 @@ #include "vector.h" #include "cache.h" #include "posix.h" +#include "filter.h" #define GIT_OBJECTS_DIR "objects/" #define GIT_OBJECT_DIR_MODE 0777 @@ -66,7 +67,7 @@ int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type); * Acts just like git_odb__hashfd with the addition of filters... */ int git_odb__hashfd_filtered( - git_oid *out, git_file fd, size_t len, git_otype type, git_vector *filters); + git_oid *out, git_file fd, size_t len, git_otype type, git_filter_list *fl); /* * Hash a `path`, assuming it could be a POSIX symlink: if the path is a |
