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

Method _read_backup_message

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

Source from the content-addressed store, hash-verified

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
59 if not self.backup_file_path.is_file():
60 return None
61
62 # Read commit message from backup
63 return self.backup_file_path.read_text(
64 encoding=self.config.settings["encoding"]
65 ).strip()
66
67 def _get_message_by_prompt_commit_questions(self) -> str:
68 # Prompt user for the commit message

Callers 1

_get_messageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected