diff options
author | Jameson Miller <jamill@microsoft.com> | 2018-07-02 19:49:29 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-03 17:58:15 (GMT) |
commit | 768d7965068189ec5287ac53b4b55bfd443bb456 (patch) | |
tree | d7e6fc5e2e8fd15d3207c7155965bcc1f12a1fac /cache.h | |
parent | 53f9a3e157dbbc901a02ac2c73346d375e24978c (diff) | |
download | git-768d7965068189ec5287ac53b4b55bfd443bb456.zip git-768d7965068189ec5287ac53b4b55bfd443bb456.tar.gz git-768d7965068189ec5287ac53b4b55bfd443bb456.tar.bz2 |
read-cache: teach refresh_cache_entry to take istate
Refactor refresh_cache_entry() to work on a specific index, instead of
implicitly using the_index. This is in preparation for making the
make_cache_entry function apply to a specific index.
Signed-off-by: Jameson Miller <jamill@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -751,7 +751,7 @@ extern void fill_stat_cache_info(struct cache_entry *ce, struct stat *st); #define REFRESH_IGNORE_SUBMODULES 0x0010 /* ignore submodules */ #define REFRESH_IN_PORCELAIN 0x0020 /* user friendly output, not "needs update" */ extern int refresh_index(struct index_state *, unsigned int flags, const struct pathspec *pathspec, char *seen, const char *header_msg); -extern struct cache_entry *refresh_cache_entry(struct cache_entry *, unsigned int); +extern struct cache_entry *refresh_cache_entry(struct index_state *, struct cache_entry *, unsigned int); /* * Opportunistically update the index but do not complain if we can't. |