summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-05-24 12:23:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-28 19:43:42 (GMT)
commitd4c0a3ac78cf2fc16c144bf720d1451fcd1e267d (patch)
treec5c1048737c424a7ed9b017a3b48d29b65ecbaad /builtin
parentcfd635c7428dfca5b45d8d45fdc1311e751d4fe2 (diff)
downloadgit-d4c0a3ac78cf2fc16c144bf720d1451fcd1e267d.zip
git-d4c0a3ac78cf2fc16c144bf720d1451fcd1e267d.tar.gz
git-d4c0a3ac78cf2fc16c144bf720d1451fcd1e267d.tar.bz2
fill_stat_cache_info(): prepare for an fsmonitor fix
We will need to pass down the `struct index_state` to `mark_fsmonitor_valid()` for an upcoming bug fix, and this here function calls that there function, so we need to extend the signature of `fill_stat_cache_info()` first. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/update-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c
index 27db092..3f8cc6c 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -280,7 +280,7 @@ static int add_one_path(const struct cache_entry *old, const char *path, int len
memcpy(ce->name, path, len);
ce->ce_flags = create_ce_flags(0);
ce->ce_namelen = len;
- fill_stat_cache_info(ce, st);
+ fill_stat_cache_info(&the_index, ce, st);
ce->ce_mode = ce_mode_from_stat(old, st->st_mode);
if (index_path(&the_index, &ce->oid, path, st,