p5-Git-Raw icon indicating copy to clipboard operation
p5-Git-Raw copied to clipboard

amending a commit

Open rmesser opened this issue 1 year ago • 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.

rmesser avatar Jun 01 '23 01:06 rmesser