Support recreating a .git/index through DirCache