employ new explicit "exists in index?" API
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 17 Sep 2013 07:06:15 +0000 (03:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Sep 2013 17:07:37 +0000 (10:07 -0700)
Each caller of index_name_exists() knows whether it is looking for a
directory or a file, and can avoid the unnecessary indirection of
index_name_exists() by instead calling index_dir_exists() or
index_file_exists() directly.

Invoking the appropriate search function explicitly will allow a
subsequent patch to relieve callers of the artificial burden of having
to add a trailing '/' to the pathname given to index_dir_exists().

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found