Skip to content

Support reusing and reediting commit messages - #2383

Merged
jelmer merged 2 commits into
jelmer:mainfrom
be-student:codex/1845-reuse-message
Sep 6, 2026
Merged

jelmer merged 2 commits into
jelmer:mainfrom
be-student:codex/1845-reuse-message

Conversation

@be-student

@be-student be-student commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Add dulwich commit -C/--reuse-message to reuse a commit's message and authorship, and -c/--reedit-message to edit the reused message. Explicit --author still takes precedence.

Includes CLI regression tests and a NEWS entry. Refs #1845.

@be-student
be-student requested a review from jelmer as a code owner September 6, 2026 01:17

@jelmer jelmer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

please clean up PR description, see previous PR

Comment thread dulwich/cli.py Resolved
@be-student

Copy link
Copy Markdown
Contributor Author

Removed the exception handler in 694e65a so commit resolution errors propagate. Added coverage for missing and non-commit sources across all four flags; HEAD stays unchanged. The CLI suite passes (311 tests, 4 skipped). Also shortened the PR description.

@jelmer
jelmer enabled auto-merge September 6, 2026 02:12
@jelmer
jelmer merged commit 89d549a into jelmer:main Sep 6, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants