Support writing a .git/index through DirCache