diff options
author | Philip Kelley <phkelley@hotmail.com> | 2012-09-17 15:42:41 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2012-09-17 15:42:41 -0400 |
commit | ec40b7f99f7f7161b0a1b24f1d8a934ec0eaacb1 (patch) | |
tree | 59744c10038258c3993a4eb1b1dfc3896c35b97a /src/attr.c | |
parent | e8776d30f7edb570f435cf746d712c696b862bdd (diff) | |
download | libgit2-ec40b7f99f7f7161b0a1b24f1d8a934ec0eaacb1.tar.gz |
Support for core.ignorecase
Diffstat (limited to 'src/attr.c')
-rw-r--r-- | src/attr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/attr.c b/src/attr.c index 68f8d7de6..025ad3c87 100644 --- a/src/attr.c +++ b/src/attr.c @@ -376,6 +376,7 @@ int git_attr_cache__push_file( const char *filename, git_attr_file_source source, git_attr_file_parser parse, + void* parsedata, git_vector *stack) { int error = 0; @@ -436,7 +437,7 @@ int git_attr_cache__push_file( goto finish; } - if (parse && (error = parse(repo, content, file)) < 0) + if (parse && (error = parse(repo, parsedata, content, file)) < 0) goto finish; git_strmap_insert(cache->files, file->key, file, error); //-V595 @@ -468,7 +469,7 @@ finish: } #define push_attr_file(R,S,B,F) \ - git_attr_cache__push_file((R),(B),(F),GIT_ATTR_FILE_FROM_FILE,git_attr_file__parse_buffer,(S)) + git_attr_cache__push_file((R),(B),(F),GIT_ATTR_FILE_FROM_FILE,git_attr_file__parse_buffer,NULL,(S)) typedef struct { git_repository *repo; @@ -517,7 +518,7 @@ static int push_one_attr(void *ref, git_buf *path) for (i = 0; !error && i < n_src; ++i) error = git_attr_cache__push_file( info->repo, path->ptr, GIT_ATTR_FILE, src[i], - git_attr_file__parse_buffer, info->files); + git_attr_file__parse_buffer, NULL, info->files); return error; } |