Runs use with the path of a fresh index file, index inside a new
directory made in stateDirectory, and removes that directory
afterwards however use ends. The file does not exist when use
starts; git read-tree creates it. Fails with
SnapshotIndexFailed when the directory cannot be made.
Runs
usewith the path of a fresh index file,indexinside a new directory made instateDirectory, and removes that directory afterwards howeveruseends. The file does not exist whenusestarts;git read-treecreates it. Fails with SnapshotIndexFailed when the directory cannot be made.