From: Michael Haggerty Date: Thu, 4 Aug 2011 04:36:13 +0000 (+0200) Subject: Remove anachronism from comment X-Git-Tag: v1.7.7-rc0~23^2~26 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d42453ab1a482df0fdb428c20de1189a21a2bee1;p=git.git Remove anachronism from comment Setting attributes to arbitrary values ("attribute=value") is now supported, so it is no longer necessary for this comment to justify prohibiting '=' in an attribute name. Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/attr.c b/attr.c index f6b3f7e85..4a1244f9a 100644 --- a/attr.c +++ b/attr.c @@ -50,10 +50,8 @@ static unsigned hash_name(const char *name, int namelen) static int invalid_attr_name(const char *name, int namelen) { /* - * Attribute name cannot begin with '-' and from - * [-A-Za-z0-9_.]. We'd specifically exclude '=' for now, - * as we might later want to allow non-binary value for - * attributes, e.g. "*.svg merge=special-merge-program-for-svg" + * Attribute name cannot begin with '-' and must consist of + * characters from [-A-Za-z0-9_.]. */ if (*name == '-') return -1;