added parameter `new_sha` to store.diff