Skip to content

feat(reword): support gpg signing for non-HEAD commits#2959

Merged
extrawurst merged 3 commits into
gitui-org:masterfrom
guerinoni:reword-gpg
Jul 1, 2026
Merged

feat(reword): support gpg signing for non-HEAD commits#2959
extrawurst merged 3 commits into
gitui-org:masterfrom
guerinoni:reword-gpg

Conversation

@guerinoni

@guerinoni guerinoni commented May 26, 2026

Copy link
Copy Markdown
Contributor

Rewording any commit older than HEAD used to fail with
SignRewordNonLastCommit as soon as commit.gpgsign was enabled, because
git2's rebase API has no way to sign the commits it produces. The
behaviour matched neither git CLI nor user expectation, so anyone
relying on signing had to drop down to the shell to fix a typo a few
commits back.

This Pull Request fixes/closes #{issue_num}.

It changes the following:

I followed the checklist:

  • I added unittests
  • I ran make check without errors
  • I tested the overall application
  • I added an appropriate item to the changelog

@guerinoni guerinoni force-pushed the reword-gpg branch 4 times, most recently from 2314d93 to 41a801a Compare May 26, 2026 14:29
@extrawurst extrawurst added this to the v0.29 milestone Jun 29, 2026
Comment thread asyncgit/src/sync/reword.rs
Comment thread asyncgit/src/sync/reword.rs Outdated
Comment thread asyncgit/src/sync/reword.rs
Comment thread asyncgit/src/sync/reword.rs Outdated

@extrawurst extrawurst left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for helping with this. nothing major, mostly nits

@guerinoni

Copy link
Copy Markdown
Contributor Author

thanks for helping with this. nothing major, mostly nits

Thank you, I adjusted and rebased on master.

@guerinoni guerinoni requested a review from extrawurst June 29, 2026 19:51
Comment thread CHANGELOG.md Outdated
Rewording any commit older than HEAD used to fail with
SignRewordNonLastCommit as soon as commit.gpgsign was enabled, because
git2's rebase API has no way to sign the commits it produces. The
behaviour matched neither git CLI nor user expectation, so anyone
relying on signing had to drop down to the shell to fix a typo a few
commits back.
@guerinoni

Copy link
Copy Markdown
Contributor Author

@extrawurst fixed

@guerinoni guerinoni requested a review from extrawurst July 1, 2026 08:23
@extrawurst

Copy link
Copy Markdown
Collaborator

Awesome thank you!

@extrawurst extrawurst merged commit 5583cc9 into gitui-org:master Jul 1, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants