Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@godmaire
Copy link
Contributor

@godmaire godmaire commented Jun 27, 2025

Magit includes a commit extend op which allows you to amend a commit using the same commit message.

https://github.com/magit/magit/blob/a4f73fb2fb55f7644a80b4442379ef43840ec5e9/lisp/magit-commit.el#L206

This PR implements the commit extend operation without the override date.

Magit includes a commit extend op which allows you to amend a commit
using the same commit message.

https://github.com/magit/magit/blob/a4f73fb2fb55f7644a80b4442379ef43840ec5e9/lisp/magit-commit.el#L206

This PR implements the commit extend operation without the override
date.
@godmaire godmaire force-pushed the raine/commit-extend branch from 335c257 to 787eb49 Compare June 27, 2025 12:20
Copy link
Owner

@altsem altsem left a comment

Choose a reason for hiding this comment

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

I played around with this a bit, and I stumbled upon some prompts when using it in the original Magit. They don't seem crucial to me.

Nothing staged.  Stage and commit all unstaged changes? (y or n)
This commit has already been published to origin/master.
Do you really want to modify it? (y or n)

@codecov
Copy link

codecov bot commented Jun 29, 2025

Codecov Report

Attention: Patch coverage is 26.66667% with 11 lines in your changes missing coverage. Please review.

Project coverage is 86.87%. Comparing base (58cb787) to head (787eb49).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/ops/commit.rs 21.42% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #396      +/-   ##
==========================================
+ Coverage   83.52%   86.87%   +3.34%     
==========================================
  Files          68       68              
  Lines        7474     7191     -283     
==========================================
+ Hits         6243     6247       +4     
+ Misses       1231      944     -287     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@altsem altsem merged commit d46583a into altsem:master Jun 29, 2025
5 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