summaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 07:41:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-25 07:41:11 (GMT)
commit5795a75f9bd7a7f008b213c2f099e8c6b0468512 (patch)
treeed5f85921947bfcdd9dd7a8003c9760e5c0cc0c7 /unpack-trees.c
parent14c0f8d3ab6c36672189cd2dd217f4617d12ccba (diff)
parent1956ecd0ab26dea9c3ed6b9afe334101d9d12f60 (diff)
downloadgit-5795a75f9bd7a7f008b213c2f099e8c6b0468512.zip
git-5795a75f9bd7a7f008b213c2f099e8c6b0468512.tar.gz
git-5795a75f9bd7a7f008b213c2f099e8c6b0468512.tar.bz2
Merge branch 'bp/post-index-change-hook'
A new hook "post-index-change" is called when the on-disk index file changes, which can help e.g. a virtualized working tree implementation. * bp/post-index-change-hook: read-cache: add post-index-change hook
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 1ccd343..c5ec30f 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -1618,6 +1618,8 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
WRITE_TREE_SILENT |
WRITE_TREE_REPAIR);
}
+
+ o->result.updated_workdir = 1;
discard_index(o->dst_index);
*o->dst_index = o->result;
} else {