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
This commit is contained in:
Junio C Hamano
2019-04-25 16:41:10 +09:00
7 changed files with 182 additions and 3 deletions

View File

@ -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 {