Merge branch 'js/fsmonitor-refresh-after-discarding-index'
authorJunio C Hamano <gitster@pobox.com>
Sun, 19 May 2019 07:45:33 +0000 (16:45 +0900)
committerJunio C Hamano <gitster@pobox.com>
Sun, 19 May 2019 07:45:33 +0000 (16:45 +0900)
The fsmonitor interface got out of sync after the in-core index
file gets discarded, which has been corrected.

* js/fsmonitor-refresh-after-discarding-index:
  fsmonitor: force a refresh after the index was discarded
  fsmonitor: demonstrate that it is not refreshed after discard_index()

1  2 
cache.h
read-cache.c

diff --cc cache.h
+++ b/cache.h
@@@ -340,8 -339,7 +340,9 @@@ struct index_state 
        unsigned name_hash_initialized : 1,
                 initialized : 1,
                 drop_cache_tree : 1,
-                updated_skipworktree : 1;
 +               updated_workdir : 1,
++               updated_skipworktree : 1,
+                fsmonitor_has_run_once : 1;
        struct hashmap name_hash;
        struct hashmap dir_hash;
        struct object_id oid;
diff --cc read-cache.c
Simple merge