summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-07-21 12:12:05 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2019-08-11 20:47:59 +0100
commit22eb12afef4785fac47d56e2e8a13c840294ca4a (patch)
treee6b79c10f31cd4cc8b964970749e705d81e2dc52 /include
parente7fc8601ff9a68a5bfdc26e6073f7821b8f9b05c (diff)
downloadlibgit2-22eb12afef4785fac47d56e2e8a13c840294ca4a.tar.gz
filter: add GIT_FILTER_NO_SYSTEM_ATTRIBUTES option
Allow system-wide attributes (the ones specified in `/etc/gitattributes`) to be ignored if the flag `GIT_FILTER_NO_SYSTEM_ATTRIBUTES` is specified.
Diffstat (limited to 'include')
-rw-r--r--include/git2/filter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/filter.h b/include/git2/filter.h
index b81b25efc..a18f071ec 100644
--- a/include/git2/filter.h
+++ b/include/git2/filter.h
@@ -43,6 +43,9 @@ typedef enum {
/** Don't error for `safecrlf` violations, allow them to continue. */
GIT_FILTER_ALLOW_UNSAFE = (1u << 0),
+
+ /** Don't load `/etc/gitattributes` (or the system equivalent) */
+ GIT_FILTER_NO_SYSTEM_ATTRIBUTES = (1u << 1),
} git_filter_flag_t;
/**