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

Method _read_backup_message

commitizen/commands/commit.py:69–77  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 )
68
69 def _read_backup_message(self) -> str | None:
70 # Check the commit backup file exists
71 if not self.backup_file_path.is_file():
72 return None
73
74 # Read commit message from backup
75 return self.backup_file_path.read_text(
76 encoding=self._get_commit_encoding()
77 ).strip()
78
79 def _get_message_by_prompt_commit_questions(self) -> str:
80 # Prompt user for the commit message

Callers 1

_get_messageMethod · 0.95

Calls 1

_get_commit_encodingMethod · 0.95

Tested by

no test coverage detected