microsoft / VFSForGit

Virtual File System for Git: Enable Git at Enterprise Scale
MIT License
5.98k stars 451 forks source link

Use index.lock and move writes to head and refs to the end of the run to make interrupted fastfetch operations less bad #1763

Closed SteveBenz closed 2 years ago

SteveBenz commented 2 years ago

As mentioned in the comments, FastFetch is pretty far away from the ideal way of handling .git/index and .git/index.lock. I had a go at fixing that, but after getting a ways into it, I decided that the value just wasn't really there and the risk was pretty high. So I hacked around the problem.