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

Function is_git_project

commitizen/git.py:314–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312
313
314def is_git_project() -> bool:
315 c = cmd.run(["git", "rev-parse", "--is-inside-work-tree"])
316 return c.out.strip() == "true"
317
318
319def get_core_editor() -> str | None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected