diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2013-09-17 03:06:15 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-17 10:07:37 -0700 |
commit | ebbd7439b1b7cce0e8c68fe3e220d71cc58dd980 (patch) | |
tree | e1a20a77e2954c058cb50e0f5abcff7f0fe99ded /mergetools/vimdiff | |
parent | name-hash: refactor polymorphic index_name_exists() (diff) | |
download | tgif-ebbd7439b1b7cce0e8c68fe3e220d71cc58dd980.tar.xz |
employ new explicit "exists in index?" API
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>
Diffstat (limited to 'mergetools/vimdiff')
0 files changed, 0 insertions, 0 deletions