Pre-commit deleted all unstaged files

I was working on a new feature at $JOB and wanted to commit my changes from the last hour. I staged a few files, entered the commit message, committed them and waited for the pre-commit hooks to pass. Unfortunately, the pre-commit hooks didn&#x27;t pass because I had some style issues. And since I was using VSCode, I closed the dialog thinking that I just have to run cargo fmt once more. Then I…