Significantly slower while revert deleted files
This is an old issue, I just report it now.
What steps will reproduce the problem?
- Any Git repository with thousands of tracked files.
- Delete many tracked files from the Explorer. This case sometimes happens when I switch AutoCrLf and see a lot of diff.
- Try to recover them from TortoiseGit - "Diff", "Check for modifications" or "revert" menu.
What is the expected output? What do you see instead? I expect it to be completed soon, but it is slow to complete and output log individually, about 1 file / s. And if I use the "git checkout -f" command, it done quickly, as normal.
What version of TortoiseGit and Git are you using? On what operating system? TortoiseGit 2.8.0.0 and earlier. git version 2.23.0.windows.1 and earlier. Windows 10. Files on HDD.
Please provide any additional information below.
-
I suspect the TGit call Git commands individually, or other things consume a lot of time.
-
Add an additional ask after Autocrlf switch?
-
I used to assume the TGit - "Clean up" menu will provide a option to restore the deleted files (status).
-
The "Diff" and "Check for modifications" both appear to provide the same result, which is confusing, I still don't understand the difference between the two menus.