Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/commitizen-tools/commitizen
/ post_commit
Function
post_commit
hooks/post-commit.py:10–15 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
9
10
def
post_commit() -> None:
11
backup_file_path = get_backup_file_path()
12
13
# remove backup file if it exists
14
if
backup_file_path.is_file():
15
backup_file_path.unlink()
16
17
18
if
__name__ ==
"__main__"
:
Callers
1
post-commit.py
File · 0.85
Calls
1
get_backup_file_path
Function · 0.90
Tested by
no test coverage detected