(self)
| 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 |
no test coverage detected