mirror of
https://github.com/git/git.git
synced 2025-03-21 06:39:39 +00:00
Document struct match_attr
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
86ab7f0cca
commit
ba845b7550
14
attr.c
14
attr.c
@ -113,6 +113,20 @@ struct attr_state {
|
||||
const char *setto;
|
||||
};
|
||||
|
||||
/*
|
||||
* One rule, as from a .gitattributes file.
|
||||
*
|
||||
* If is_macro is true, then u.attr is a pointer to the git_attr being
|
||||
* defined.
|
||||
*
|
||||
* If is_macro is false, then u.pattern points at the filename pattern
|
||||
* to which the rule applies. (The memory pointed to is part of the
|
||||
* memory block allocated for the match_attr instance.)
|
||||
*
|
||||
* In either case, num_attr is the number of attributes affected by
|
||||
* this rule, and state is an array listing them. The attributes are
|
||||
* listed as they appear in the file (macros unexpanded).
|
||||
*/
|
||||
struct match_attr {
|
||||
union {
|
||||
char *pattern;
|
||||
|
Loading…
x
Reference in New Issue
Block a user