Update index file based on previous change