(self, args=None)
| 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: |
| 346 | self.io.tool_error("No git repository found.") |
| 347 | return |
| 348 | |
| 349 | if not self.coder.repo.is_dirty(): |
| 350 | self.io.tool_warning("No more changes to commit.") |
| 351 | return |
| 352 | |
| 353 | commit_message = args.strip() if args else None |
| 354 | self.coder.repo.commit(message=commit_message, coder=self.coder) |
| 355 | |
| 356 | def cmd_lint(self, args="", fnames=None): |
| 357 | "Lint and fix in-chat files or all dirty files if none in chat" |
no test coverage detected