Add command for cleaning out cached stashed patches
See original GitHub issueWhen 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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
7.3 Git Tools - Stashing and Cleaning
The answer to this issue is the git stash command. Stashing takes the dirty state of your working directory — that is, your...
Read more >How to CLEAR All Cache in Windows 10 to ... - YouTube
The ULTIMATE guide to clearing ALL cache in ANY Windows PC in ... Speed up Windows 10 PC for MAXIMUM performance ( Hidden...
Read more >How to delete a stash created with git stash create?
To drop a particular stash, click on Delete Stash button and give confirmation to delete (drop) it.
Read more >Clear the Office cache - Add-ins - Microsoft Learn
Additionally, if you make changes to your add-in's manifest (for example, update file names of icons or text of add-in commands), you should ......
Read more >How To Clear Git Cache - devconnected
Clear your cache easily on Git using the git rm command with the cached option. Clear your Git cache can help for your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My pre-commit cache directory had some pretty big patch files:
I’m fine using
pre-commit clean
to clear the whole cache, but it could be nice forgc
to mop up patch files too so I don’t need to refetch the repos.Full cache list:
closing since there isn’t an actual problem to solve