exclude: do strcmp as much as possible before fnmatch
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 7 Jun 2012 07:53:36 +0000 (14:53 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Jun 2012 18:33:38 +0000 (11:33 -0700)
commitf9f6e2ce26e25661245a6faaf0b254524c1bfbd4
tree92715b56b06f8a42bd1a17fbfb8d6d83106aa78d
parentfcd631ed84d61147b7cc8996cde533f8a8d1fca0
exclude: do strcmp as much as possible before fnmatch

this also avoids calling fnmatch() if the non-wildcard prefix is
longer than basename

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