]> git.ipfire.org Git - thirdparty/git.git/commit
wildmatch: make wildmatch's return value compatible with fnmatch
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 15 Oct 2012 06:25:57 +0000 (13:25 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Oct 2012 21:58:18 +0000 (14:58 -0700)
commit3ae5396cf719000039c5d0d35f9bf934f647b030
treea12424227ae05d6db8c52c405b06ea7c5fcc09f9
parentf1cf7b798305787d5d1272c13ead207e3e04a183
wildmatch: make wildmatch's return value compatible with fnmatch

wildmatch returns non-zero if matched, zero otherwise. This patch
makes it return zero if matches, non-zero otherwise, like fnmatch().

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
test-wildmatch.c
wildmatch.c