summaryrefslogtreecommitdiff
path: root/builtin/reset.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 /builtin/reset.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 'builtin/reset.c')
-rw-r--r--builtin/reset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 7882829..26ef9a7 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -386,6 +386,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
int flags = quiet ? REFRESH_QUIET : REFRESH_IN_PORCELAIN;
if (read_from_tree(&pathspec, &oid, intent_to_add))
return 1;
+ the_index.updated_skipworktree = 1;
if (!quiet && get_git_work_tree()) {
uint64_t t_begin, t_delta_in_ms;