Updated initial commit message to list added files.

# Context:
USER: change the "Initial commit" message to list the files being added
ASSISTANT: ```python
coder.py
<<<<<<< ORIGINAL
                commit_message = "Initial commit: Added new files to the git repo."
=======
                commit_message = f"Initial commit: Added new files to the git repo: {', '.join(new_files)}"
>>>>>>> UPDATED
```
This commit is contained in:
Paul Gauthier 2023-05-09 00:12:31 -07:00
parent e2c2f0c2b9
commit 6220dc56bf

View file

@ -94,7 +94,7 @@ class Coder:
self.console.print( self.console.print(
f"[red bold]Added {relative_fname} to the git repo" f"[red bold]Added {relative_fname} to the git repo"
) )
commit_message = "Initial commit: Added new files to the git repo." commit_message = f"Initial commit: Added new files to the git repo: {', '.join(new_files)}"
repo.git.commit("-m", commit_message, "--no-verify") repo.git.commit("-m", commit_message, "--no-verify")
self.console.print( self.console.print(
f"[green bold]Committed new files with message: {commit_message}" f"[green bold]Committed new files with message: {commit_message}"