mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
show hash and message on commit
This commit is contained in:
parent
e2e21fc68e
commit
8b920f778e
1 changed files with 1 additions and 1 deletions
2
coder.py
2
coder.py
|
@ -483,7 +483,7 @@ class Coder:
|
||||||
repo.git.add(*relative_dirty_fnames)
|
repo.git.add(*relative_dirty_fnames)
|
||||||
commit_result = repo.git.commit("-m", commit_message, "--no-verify")
|
commit_result = repo.git.commit("-m", commit_message, "--no-verify")
|
||||||
commit_hash = repo.head.commit.hexsha[:7]
|
commit_hash = repo.head.commit.hexsha[:7]
|
||||||
self.console.print(f"[green]Commit successful. Short hash: {commit_hash}")
|
self.console.print(f"[green]{commit_hash} {commit_message}")
|
||||||
return commit_hash
|
return commit_hash
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue