path: root/attr.c
diff options
authorJunio C Hamano <>2017-01-28 02:01:43 (GMT)
committerJunio C Hamano <>2017-02-01 21:46:51 (GMT)
commit4894f4ffce3cc6c4664027de78c3bc281cda2979 (patch)
treee703d6782f3d8cdde8a9cf37d9386322b8852dd1 /attr.c
parent263434f20c20b193c1ef956eda43458b7f350eaa (diff)
attr.c: update a stale comment on "struct match_attr"
When 82dce998 (attr: more matching optimizations from .gitignore, 2012-10-15) changed a pointer to a string "*pattern" into an embedded "struct pattern" in struct match_attr, it forgot to update the comment that describes the structure. Signed-off-by: Junio C Hamano <> Signed-off-by: Stefan Beller <> Signed-off-by: Brandon Williams <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'attr.c')
1 files changed, 2 insertions, 3 deletions
diff --git a/attr.c b/attr.c
index 04d2433..007f1a2 100644
--- a/attr.c
+++ b/attr.c
@@ -131,9 +131,8 @@ struct pattern {
* 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.)
+ * If is_macro is false, then u.pat is the filename pattern to which the
+ * rule applies.
* In either case, num_attr is the number of attributes affected by
* this rule, and state is an array listing them. The attributes are