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

Function get_core_editor

commitizen/git.py:319–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318
319def get_core_editor() -> str | None:
320 c = cmd.run(["git", "var", "GIT_EDITOR"])
321 if c.out:
322 return c.out.strip()
323 return None
324
325
326def smart_open(*args, **kwargs): # type: ignore[no-untyped-def,unused-ignore] # noqa: ANN201

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected