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:
authorEdward Thomson <ethomson@edwardthomson.com>2015-07-01 17:40:11 +0300
committerEdward Thomson <ethomson@edwardthomson.com>2015-07-01 17:40:11 +0300
commit63924435a103d34315ad9a4851d84b2b052aca38 (patch)
tree7bbdaab9c5f7004164b69da795805dfa8b6024c0 /include
parent14888070b941824b7f6369c60d7600594d215577 (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.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.