aboutsummaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-27 18:02:00 -0800
committerJunio C Hamano <gitster@pobox.com>2017-02-01 13:46:52 -0800
commit428103c7f1a0cb8bb1432214efa60abc5bd5f198 (patch)
tree3cabd68582d64c329cd8873591cb2f553535e923 /attr.h
parent6bc2e3f709d04e416f3b5d1e23f2ac31f4cbc1d1 (diff)
downloadgit-428103c7f1a0cb8bb1432214efa60abc5bd5f198.tar.gz
git-428103c7f1a0cb8bb1432214efa60abc5bd5f198.tar.xz
attr: change validity check for attribute names to use positive logic
Convert 'invalid_attr_name()' to 'attr_name_valid()' and use positive logic for the return value. In addition create a helper function that prints out an error message when an invalid attribute name is used. We could later update the message to exactly spell out what the rules for a good attribute name are, etc. Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.h')
0 files changed, 0 insertions, 0 deletions