summaryrefslogtreecommitdiff
path: root/src/attr_file.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-18 15:45:59 -0700
committerRussell Belfer <rb@github.com>2014-04-18 15:45:59 -0700
commitac16bd0a94e1f7254112c7585b843bdc2d0659c1 (patch)
tree12c934742bac4f27aa7f55391cbc6d29b252e8a9 /src/attr_file.h
parent916fcbd61754f74b350ca689e27563cdbded2d30 (diff)
downloadlibgit2-ac16bd0a94e1f7254112c7585b843bdc2d0659c1.tar.gz
Minor fixes
Only apply LEADING_DIR pattern munging to patterns in ignore and attribute files, not to pathspecs used to select files to operate on. Also, allow internal macro definitions to be evaluated before loading all external ones (important so that external ones can make use of internal `binary` definition).
Diffstat (limited to 'src/attr_file.h')
-rw-r--r--src/attr_file.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/attr_file.h b/src/attr_file.h
index 09afa5bd4..e50aec07c 100644
--- a/src/attr_file.h
+++ b/src/attr_file.h
@@ -31,10 +31,11 @@
#define GIT_ATTR_FNMATCH_ALLOWNEG (1U << 9)
#define GIT_ATTR_FNMATCH_ALLOWMACRO (1U << 10)
#define GIT_ATTR_FNMATCH_LEADINGDIR (1U << 11)
+#define GIT_ATTR_FNMATCH_NOLEADINGDIR (1U << 12)
#define GIT_ATTR_FNMATCH__INCOMING \
- (GIT_ATTR_FNMATCH_ALLOWSPACE | \
- GIT_ATTR_FNMATCH_ALLOWNEG | GIT_ATTR_FNMATCH_ALLOWMACRO)
+ (GIT_ATTR_FNMATCH_ALLOWSPACE | GIT_ATTR_FNMATCH_ALLOWNEG | \
+ GIT_ATTR_FNMATCH_ALLOWMACRO | GIT_ATTR_FNMATCH_NOLEADINGDIR)
typedef enum {
GIT_ATTR_FILE__IN_MEMORY = 0,