summaryrefslogtreecommitdiff
path: root/xdiff-interface.h
diff options
context:
space:
mode:
authorLibravatar Krzesimir Nowak <krzesimir@endocode.com>2013-12-11 12:54:42 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-12-12 12:37:36 -0800
commit23faf546ae59d945848389070507bc418de733b6 (patch)
tree2589ade7dce77ecd83032185898b4d32966309d1 /xdiff-interface.h
parentgitweb: Move check-ref-format code into separate function (diff)
downloadtgif-23faf546ae59d945848389070507bc418de733b6.tar.xz
gitweb: Return 1 on validation success instead of passed input
Users of validate_* passing "0" might get failures on correct name because of coercion of "0" to false in code like: die_error(500, "invalid ref") unless (check_ref_format ("0")); Also, the validate_foo subs are renamed to is_valid_foo. Signed-off-by: Krzesimir Nowak <krzesimir@endocode.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'xdiff-interface.h')
0 files changed, 0 insertions, 0 deletions