Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-01-17 04:58:27 +0400
committerRussell Belfer <arrbee@arrbee.com>2012-01-17 04:58:27 +0400
commita51cd8e6f6724079a552b75e014f792f3f68e158 (patch)
treefcf526f2a7575e215d95589d1a8e07277981fd18 /src/attr.h
parent6e03b12f5715cb3f5cb5c8be6512e041cdf44a05 (diff)
Fix handling of relative paths for attrs
Per issue #533, the handling of relative paths in attribute and ignore files was not right. Fixed this by pre-joining the relative path of the attribute/ignore file onto the match string when a full path match is required. Unfortunately, fixing this required a bit more code than I would have liked because I had to juggle things around so that the fnmatch parser would have sufficient information to prepend the relative path when it was needed.
Diffstat (limited to 'src/attr.h')
-rw-r--r--src/attr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr.h b/src/attr.h
index 5edff30d1..a758cc4bd 100644
--- a/src/attr.h
+++ b/src/attr.h
@@ -25,6 +25,6 @@ extern int git_attr_cache__push_file(
git_vector *stack,
const char *base,
const char *filename,
- int (*loader)(git_repository *, const char *, git_attr_file **));
+ int (*loader)(git_repository *, const char *, git_attr_file *));
#endif