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

Method __init__

commitizen/commands/commit.py:48–55  ·  view source on GitHub ↗
(self, config: BaseConfig, arguments: CommitArgs)

Source from the content-addressed store, hash-verified

46 """Show prompt for the user to create a guided commit."""
47
48 def __init__(self, config: BaseConfig, arguments: CommitArgs) -> None:
49 if not git.is_git_project():
50 raise NotAGitProjectError()
51
52 self.config: BaseConfig = config
53 self.cz = factory.committer_factory(self.config)
54 self.arguments = arguments
55 self.backup_file_path = get_backup_file_path()
56
57 def _read_backup_message(self) -> str | None:
58 # Check the commit backup file exists

Callers

nothing calls this directly

Calls 2

NotAGitProjectErrorClass · 0.90
get_backup_file_pathFunction · 0.90

Tested by

no test coverage detected