MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / find_git_project_root

Function find_git_project_root

commitizen/git.py:301–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300
301def find_git_project_root() -> Path | None:
302 c = cmd.run(["git", "rev-parse", "--show-toplevel"])
303 if c.err:
304 return None
305 return Path(c.out.strip())
306
307
308def is_staging_clean() -> bool:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected