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:
authorCarlos Martín Nieto <cmn@dwim.me>2015-07-09 19:21:31 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-07-09 19:21:31 +0300
commit9847d80ddc97b85ca38e158dc4781f0a3c6081ca (patch)
tree943d25b195b9eb2a90c355707d09f71b60d195c5 /include
parentcd85ce6040485ba3258555e33ae1641ca62097ff (diff)
parent63924435a103d34315ad9a4851d84b2b052aca38 (diff)
Merge pull request #3281 from ethomson/wildcard_filters
filters: custom filters with wildcard attributes
Diffstat (limited to 'include')
-rw-r--r--include/git2/sys/filter.h5
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.