show hash and message on commit

This commit is contained in:
Paul Gauthier 2023-05-08 17:17:41 -07:00
parent e2e21fc68e
commit 8b920f778e

View file

@ -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