When pre-commit is run on a repository with unstaged changes, these changes are stashed in a cache directory. However, the patches are never cleaned up; they just accumulate. As far as I can tell (The documentation is not explicit), the only commands that pre-commit provides for cleaning up the cache (clean and gc) also delete hook repos, but I want to be able to only delete patch files. I thus request that a command be added to pre-commit for cleaning up the cached patches and only the patches.
When pre-commit is run on a repository with unstaged changes, these changes are stashed in a cache directory. However, the patches are never cleaned up; they just accumulate. As far as I can tell (The documentation is not explicit), the only commands that pre-commit provides for cleaning up the cache (
cleanandgc) also delete hook repos, but I want to be able to only delete patch files. I thus request that a command be added to pre-commit for cleaning up the cached patches and only the patches.