MCPcopy
hub / github.com/Aider-AI/aider / raw_cmd_commit

Method raw_cmd_commit

aider/commands.py:344–354  ·  view source on GitHub ↗
(self, args=None)

Source from the content-addressed store, hash-verified

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"

Callers 1

cmd_commitMethod · 0.95

Calls 4

is_dirtyMethod · 0.80
commitMethod · 0.80
tool_errorMethod · 0.45
tool_warningMethod · 0.45

Tested by

no test coverage detected