Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PROOF-OF-CONCEPT: allow deleting files that are in use
This should not be merged as-is, but is intended to act as a discussion-starter. Applying the insights of https://github.com/LloydLabs/delete-self-poc, this commit implements support for deleting files that are in-use, even if that is theoretically impossible on Windows. The ramifications are somewhat non-trivial, though: - Many Windows applications are totally unhappy when the contract "files that are in use cannot be deleted" is broken. - Even `git.exe` itself can be used to demonstrate the dire downsides of this here patch: when switching branches in `git-sdk-64` where, say, `mingw64/bin/libintl-8.dll` needs to be updated (which is a dependency of `mingw64/bin/git.exe`), a `checkout.workers` value greater than 1 will let `git.exe` attempt to spawn `git checkout--worker` which will fail to load because of the missing dependency (which is missing because `git.exe` _just_ deleted it). Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information