author | Junio C Hamano <junkio@cox.net> | |
Wed, 18 Apr 2007 23:16:37 +0000 (16:16 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 18 Apr 2007 23:17:13 +0000 (16:17 -0700) | ||
commit | a5e92abde61d59a8612c5b87d0bae681e90f7fdb | |
tree | e53fefb050e87cb63d06d016ffec73e2a67f2bf2 | tree | snapshot |
parent | 3086486d326b00ce308208e62e0e0de831f3563b | commit | diff |
Fix funny types used in attribute value representation
It was bothering me a lot that I abused small integer values
casted to (void *) to represent non string values in
gitattributes. This corrects it by making the type of attribute
values (const char *), and using the address of a few statically
allocated character buffer to denote true/false. Unset attributes
are represented as having NULLs as their values.
Added in-header documentation to explain how git_checkattr()
routine should be called.
Signed-off-by: Junio C Hamano <junkio@cox.net>
It was bothering me a lot that I abused small integer values
casted to (void *) to represent non string values in
gitattributes. This corrects it by making the type of attribute
values (const char *), and using the address of a few statically
allocated character buffer to denote true/false. Unset attributes
are represented as having NULLs as their values.
Added in-header documentation to explain how git_checkattr()
routine should be called.
Signed-off-by: Junio C Hamano <junkio@cox.net>
attr.c | diff | blob | history | |
attr.h | diff | blob | history | |
builtin-check-attr.c | diff | blob | history | |
convert.c | diff | blob | history | |
diff.c | diff | blob | history | |
merge-recursive.c | diff | blob | history |