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 <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Michael Haggerty 2011-08-04 06:36:13 +02:00 committed by Junio C Hamano
parent 650cfc512e
commit d42453ab1a

6
attr.c
View File

@ -50,10 +50,8 @@ static unsigned hash_name(const char *name, int namelen)
static int invalid_attr_name(const char *name, int namelen) static int invalid_attr_name(const char *name, int namelen)
{ {
/* /*
* Attribute name cannot begin with '-' and from * Attribute name cannot begin with '-' and must consist of
* [-A-Za-z0-9_.]. We'd specifically exclude '=' for now, * characters from [-A-Za-z0-9_.].
* as we might later want to allow non-binary value for
* attributes, e.g. "*.svg merge=special-merge-program-for-svg"
*/ */
if (*name == '-') if (*name == '-')
return -1; return -1;