From: Junio C Hamano Date: Thu, 15 Aug 2013 19:08:45 +0000 (-0700) Subject: dir.c: use the cache_* macro to access the current index X-Git-Tag: v1.8.4.2~8^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/712610274211dc6cd7c83c5ccf88db5a75af8c25?ds=inline;hp=712610274211dc6cd7c83c5ccf88db5a75af8c25 dir.c: use the cache_* macro to access the current index 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 ---