dir.c: use the cache_* macro to access the current index
authorJunio C Hamano <gitster@pobox.com>
Thu, 15 Aug 2013 19:08:45 +0000 (12:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Aug 2013 19:08:45 +0000 (12:08 -0700)
These codepaths always start from the_index and use index_*
functions, but there is no reason to do so. Use the compatibility
cache_* macro to access the current in-core index like everybody
else.

While at it, fix typo in the comment for a function to check if a
path within a directory appears in the index.

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