summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-14 16:39:20 -0700
committerJunio C Hamano <gitster@pobox.com>2016-05-16 13:55:02 -0700
commit642c6f2ae0840ef9625f924d0e3e6c14504b8e09 (patch)
tree03a279f52c7580a987d089934cca9048c9b91b10
parentc69fa1906ea51191d2e13ae4d9136c66c1291a36 (diff)
downloadgit-642c6f2ae0840ef9625f924d0e3e6c14504b8e09.tar.gz
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 <gitster@pobox.com>
-rw-r--r--attr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/attr.c b/attr.c
index 45aec1b136..4ae78010e0 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