MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / get_backup_file_path

Function get_backup_file_path

commitizen/cz/utils.py:26–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25
26def get_backup_file_path() -> Path:
27 project_root = git.find_git_project_root()
28 project = project_root.as_posix().replace("/", "%") if project_root else ""
29
30 user = os.environ.get("USER", "")
31 return Path(tempfile.gettempdir(), f"cz.commit%{user}%{project}.backup")

Callers 4

backup_fileFunction · 0.90
prepare_commit_msgFunction · 0.90
post_commitFunction · 0.90
__init__Method · 0.90

Calls 1

getMethod · 0.45

Tested by 1

backup_fileFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…