Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 10:41:10 +0300
committerJunio C Hamano <gitster@pobox.com>2019-04-25 10:41:11 +0300
commit5795a75f9bd7a7f008b213c2f099e8c6b0468512 (patch)
treeed5f85921947bfcdd9dd7a8003c9760e5c0cc0c7 /builtin/update-index.c
parent14c0f8d3ab6c36672189cd2dd217f4617d12ccba (diff)
parent1956ecd0ab26dea9c3ed6b9afe334101d9d12f60 (diff)
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 'builtin/update-index.c')
-rw-r--r--builtin/update-index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c
index 1b6c42f748..73fe04e1c2 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -1082,6 +1082,8 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
if (entries < 0)
die("cache corrupted");
+ the_index.updated_skipworktree = 1;
+
/*
* Custom copy of parse_options() because we want to handle
* filename arguments as they come.