Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a commit message from an existing commit #241

Open
joeytwiddle opened this issue Aug 17, 2023 · 3 comments
Open

Generate a commit message from an existing commit #241

joeytwiddle opened this issue Aug 17, 2023 · 3 comments
Labels
feature New feature or request pending triage

Comments

@joeytwiddle
Copy link

joeytwiddle commented Aug 17, 2023

Feature request

Allow us to pass a commit hash to aicommits so that instead of examining the staged changes, it would examine the patch of the specified commit, and generate a new commit message for that. For example:

$ aicommits --hash 890996f
or
$ aicommits --commit 8323072f5e13e8fad1ecc03a25653010afc723ae

Why?

This would mainly be useful for developers working on aicommits (who may have already made a commit, but want to see if they can coerce aicommits to do as well, or better, than their original commit message)

This might also be useful for someone considering a rebase on their own project.

Alternatives

Currently, I do something like git reset HEAD~ ; git add . ; aicommits which works, but is not ideal.

@joeytwiddle joeytwiddle added feature New feature or request pending triage labels Aug 17, 2023
@nafg
Copy link

nafg commented Feb 18, 2024

simpler workaround:

git rebase -x "git reset --soft HEAD^ && aicommits" ...

@Helpmylyfe82
Copy link

$ aicommits --hash 890996f
or
$ aicommits --commit 8323072

@nafg
Copy link

nafg commented Feb 19, 2024

@Helpmylyfe82 what?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request pending triage
Projects
None yet
Development

No branches or pull requests

3 participants