mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Add commit message to new files added in set_repo() method.
This commit is contained in:
parent
6781584d67
commit
ec486f8504
1 changed files with 3 additions and 0 deletions
3
coder.py
3
coder.py
|
@ -95,6 +95,9 @@ class Coder:
|
|||
if Confirm.ask(question, console=self.console):
|
||||
self.repo.git.add(relative_fname)
|
||||
self.console.print(f"[red]Added {fname} to the git repo")
|
||||
commit_message = f"Initial commit: Added {fname} to the git repo."
|
||||
self.repo.git.commit("-m", commit_message, "--no-verify")
|
||||
self.console.print(f"[green bold]Committed {fname} with message: {commit_message}")
|
||||
else:
|
||||
self.console.print(f"[red]Skipped adding {fname} to the git repo")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue