diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-01 17:40:11 +0300 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2015-07-01 17:40:11 +0300 |
commit | 63924435a103d34315ad9a4851d84b2b052aca38 (patch) | |
tree | 7bbdaab9c5f7004164b69da795805dfa8b6024c0 /include | |
parent | 14888070b941824b7f6369c60d7600594d215577 (diff) |
filters: custom filters with wildcard attributes
Allow custom filters with wildcard attributes, so that clients
can support some random `filter=foo` in a .gitattributes and look
up the corresponding smudge/clean commands in the configuration file.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/sys/filter.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/git2/sys/filter.h b/include/git2/sys/filter.h index 5fd8d5566..baf1515d6 100644 --- a/include/git2/sys/filter.h +++ b/include/git2/sys/filter.h @@ -240,7 +240,10 @@ typedef void (*git_filter_cleanup_fn)( * for this filter (e.g. "eol crlf text"). If the attribute name is bare, * it will be simply loaded and passed to the `check` callback. If it has * a value (i.e. "name=value"), the attribute must match that value for - * the filter to be applied. + * the filter to be applied. The value may be a wildcard (eg, "name=*"), + * in which case the filter will be invoked for any value for the given + * attribute name. See the attribute parameter of the `check` callback + * for the attribute value that was specified. * * The `initialize`, `shutdown`, `check`, `apply`, and `cleanup` callbacks * are all documented above with the respective function pointer typedefs. |