summaryrefslogtreecommitdiff
path: root/src/attr_file.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-04-18 14:42:40 -0700
committerRussell Belfer <rb@github.com>2014-04-18 14:42:40 -0700
commit916fcbd61754f74b350ca689e27563cdbded2d30 (patch)
treebb15608b4bde5f23660ae96c6b7cc30dc545d593 /src/attr_file.h
parente3a2a04ceff1d3657629fd6a7245d9a9fc53f24b (diff)
downloadlibgit2-916fcbd61754f74b350ca689e27563cdbded2d30.tar.gz
Fix ignore difference from git with trailing /*
Ignore patterns that ended with a trailing '/*' were still needing to match against another actual '/' character in the full path. This is not the same behavior as core Git. Instead, we strip a trailing '/*' off of any patterns that were matching and just take it to imply the FNM_LEADING_DIR behavior.
Diffstat (limited to 'src/attr_file.h')
-rw-r--r--src/attr_file.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/attr_file.h b/src/attr_file.h
index c906be44d..09afa5bd4 100644
--- a/src/attr_file.h
+++ b/src/attr_file.h
@@ -30,6 +30,7 @@
#define GIT_ATTR_FNMATCH_MATCH_ALL (1U << 8)
#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__INCOMING \
(GIT_ATTR_FNMATCH_ALLOWSPACE | \