Skip to content

add --keep to pre-commit gc - #3754

Closed
kristofferkoch wants to merge 1 commit into
pre-commit:mainfrom
kristofferkoch:gc-keep
Closed

kristofferkoch wants to merge 1 commit into
pre-commit:mainfrom
kristofferkoch:gc-keep

Conversation

@kristofferkoch

Copy link
Copy Markdown

this avoids cache churn when CI jobs use different revisions of the same repo, e.g. with PRs lagging a updated main branch.

referenced revisions are always kept and count toward the limit.

This creates a new table, so I'm not sure if this is OK, but it's a feature that would make my life better :)

this avoids cache churn when CI jobs use different revisions of the same repo.

referenced revisions are always kept and count toward the limit.
@asottile

asottile commented Sep 9, 2026

Copy link
Copy Markdown
Member

I suspect you're using your cache incorrectly. please start with an issue

@asottile asottile closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants