verify_path(): simplify check at the directory boundary
authorJunio C Hamano <gitster@pobox.com>
Tue, 7 Jun 2011 03:49:06 +0000 (20:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Jun 2011 19:22:51 +0000 (12:22 -0700)
commit3bdf09c7f555d553b4fee00c00c760b546812d4f
tree957ccc58974a3d0bf19f0943dc60846fa28bf74e
parent56948cb6aa8189e3b77c700119d179172e0f8c4a
verify_path(): simplify check at the directory boundary

We simply want to say "At a directory boundary, be careful with a name
that begins with a dot, forbid a name that ends with the boundary
character or has duplicated bounadry characters".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c