jacquesg/p5-Git-Raw

amending a commit

rmesser opened this issue · 0 comments

I am trying to use this module to modify an existing commit message. But Git::Raw::Commit::amend runs a bit of perl code that calls Git::Raw::Commit -> create, which creates a new commit. There is no binding in xs/Commit.xs to the C function git_commit_amend. Therefore I don't see how it is possible to quickly modify the message of an existing commit.

It would be nice if this binding were available. Or maybe the Git::Raw::Commit::message function could take an optional input, and if present it would update the commit's message.

Thanks for considering this request.