(self)
| 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 |