Commit 45c53eb6 by Russell Belfer

Use unsigned type for APIs with opt flag mask

parent 5269008c
......@@ -80,6 +80,7 @@ typedef struct git_filter_list git_filter_list;
* @param blob The blob to which the filter will be applied (if known)
* @param path Relative path of the file to be filtered
* @param mode Filtering direction (WT->ODB or ODB->WT)
* @param options Combination of `git_filter_opt_t` flags
* @return 0 on success (which could still return NULL if no filters are
* needed for the requested file), <0 on error
*/
......@@ -89,7 +90,7 @@ GIT_EXTERN(int) git_filter_list_load(
git_blob *blob, /* can be NULL */
const char *path,
git_filter_mode_t mode,
git_filter_opt_t options);
uint32_t options);
/**
* Apply filter list to a data buffer.
......
......@@ -58,7 +58,7 @@ GIT_EXTERN(int) git_filter_list_new(
git_filter_list **out,
git_repository *repo,
git_filter_mode_t mode,
git_filter_opt_t options);
uint32_t options);
/**
* Add a filter to a filter list with the given payload.
......@@ -123,9 +123,9 @@ GIT_EXTERN(const git_oid *) git_filter_source_id(const git_filter_source *src);
GIT_EXTERN(git_filter_mode_t) git_filter_source_mode(const git_filter_source *src);
/**
* Get the git_filter_opt_t options to be applied
* Get the combination git_filter_opt_t options to be applied
*/
GIT_EXTERN(git_filter_opt_t) git_filter_source_options(const git_filter_source *src);
GIT_EXTERN(uint32_t) git_filter_source_options(const git_filter_source *src);
/*
* struct git_filter
......
......@@ -23,7 +23,7 @@ struct git_filter_source {
git_oid oid; /* zero if unknown (which is likely) */
uint16_t filemode; /* zero if unknown */
git_filter_mode_t mode;
git_filter_opt_t options;
uint32_t options;
};
typedef struct {
......@@ -359,7 +359,7 @@ git_filter_mode_t git_filter_source_mode(const git_filter_source *src)
return src->mode;
}
git_filter_opt_t git_filter_source_options(const git_filter_source *src)
uint32_t git_filter_source_options(const git_filter_source *src)
{
return src->options;
}
......@@ -429,7 +429,7 @@ int git_filter_list_new(
git_filter_list **out,
git_repository *repo,
git_filter_mode_t mode,
git_filter_opt_t options)
uint32_t options)
{
git_filter_source src = { 0 };
src.repo = repo;
......@@ -445,7 +445,7 @@ int git_filter_list_load(
git_blob *blob, /* can be NULL */
const char *path,
git_filter_mode_t mode,
git_filter_opt_t options)
uint32_t options)
{
int error = 0;
git_filter_list *fl = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment