Commit edits to the repo made outside the chat (commit message optional)
(self, args=None)
| 335 | # each one must take an args param. |
| 336 | |
| 337 | def cmd_commit(self, args=None): |
| 338 | "Commit edits to the repo made outside the chat (commit message optional)" |
| 339 | try: |
| 340 | self.raw_cmd_commit(args) |
| 341 | except ANY_GIT_ERROR as err: |
| 342 | self.io.tool_error(f"Unable to complete commit: {err}") |
| 343 | |
| 344 | def raw_cmd_commit(self, args=None): |
| 345 | if not self.coder.repo: |