• Junio C Hamano's avatar
    Fix funny types used in attribute value representation · a5e92abd
    Junio C Hamano authored
    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: default avatarJunio C Hamano <junkio@cox.net>
    a5e92abd
attr.h 816 Bytes