mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
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:
parent
650cfc512e
commit
d42453ab1a
6
attr.c
6
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;
|
||||
|
Loading…
Reference in New Issue
Block a user