Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ gc
Function
gc
pre_commit/commands/gc.py:96–98 ·
view source on GitHub ↗
(store: Store)
Source
from the content-addressed store, hash-verified
94
95
96
def
gc(store: Store) -> int:
97
output.write_line(f
'{_gc(store)} repo(s) removed.'
)
98
return
0
Callers
11
main
Function · 0.90
_remove_config_assert_cleared
Function · 0.90
test_gc
Function · 0.90
test_gc_repo_not_cloned
Function · 0.90
test_gc_meta_repo_does_not_crash
Function · 0.90
test_gc_local_repo_does_not_crash
Function · 0.90
test_gc_unused_local_repo_with_env
Function · 0.90
test_gc_config_with_missing_hook
Function · 0.90
test_gc_deletes_invalid_configs
Function · 0.90
test_invalid_manifest_gcd
Function · 0.90
test_gc_pre_1_14_roll_forward
Function · 0.90
Calls
1
_gc
Function · 0.85
Tested by
10
_remove_config_assert_cleared
Function · 0.72
test_gc
Function · 0.72
test_gc_repo_not_cloned
Function · 0.72
test_gc_meta_repo_does_not_crash
Function · 0.72
test_gc_local_repo_does_not_crash
Function · 0.72
test_gc_unused_local_repo_with_env
Function · 0.72
test_gc_config_with_missing_hook
Function · 0.72
test_gc_deletes_invalid_configs
Function · 0.72
test_invalid_manifest_gcd
Function · 0.72
test_gc_pre_1_14_roll_forward
Function · 0.72