(self, config: BaseConfig, arguments: CommitArgs)
| 49 | """Show prompt for the user to create a guided commit.""" |
| 50 | |
| 51 | def __init__(self, config: BaseConfig, arguments: CommitArgs) -> None: |
| 52 | if not git.is_git_project(): |
| 53 | raise NotAGitProjectError() |
| 54 | |
| 55 | self.config: BaseConfig = config |
| 56 | self.cz = factory.committer_factory(self.config) |
| 57 | self.arguments = arguments |
| 58 | self.backup_file_path = get_backup_file_path() |
| 59 | |
| 60 | def _get_commit_encoding(self) -> str: |
| 61 | """Return the encoding of the files that hold the commit message. |
nothing calls this directly
no test coverage detected