From: Junio C Hamano Date: Wed, 18 Apr 2007 23:16:37 +0000 (-0700) Subject: Fix funny types used in attribute value representation X-Git-Tag: v1.5.2-rc0~18^2~9 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a5e92abde61d59a8612c5b87d0bae681e90f7fdb?hp=a5e92abde61d59a8612c5b87d0bae681e90f7fdb 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 ---