Skip to content

Add command for cleaning out cached stashed patches #1969

@jwodder

Description

@jwodder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions