Skip to content

Unify commit file selection with diff stat - #11

Merged
simo5 merged 1 commit into
mainfrom
commit_improv_2
Oct 26, 2026
Merged

simo5 merged 1 commit into
mainfrom
commit_improv_2

Conversation

@simo5

@simo5 simo5 commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Merge the commit file selection list directly into the diff stat comments in the commit buffer, allowing files to be toggled with or excluded by deleting their lines.

Additionally, track the original HEAD during amend operations to reliably revert changes if the commit is aborted or fails, add --no-index to the fallback git apply command, and expand test coverage.

Assisted-by: Gemini:Gemini 3.8 Flash

@simo5
simo5 force-pushed the commit_improv_2 branch 5 times, most recently from 14e9737 to 9e4df62 Compare October 26, 2026 20:29
Integrate file toggling into the diff stat lines instead of displaying a
separate file list comment block in the commit buffer. Deselected files are
now marked with '#- ', and deleting a file line also excludes it from the
commit.

In addition, handle file renames across diff stat comments properly, allow
file toggling during amend operations against the original HEAD, disallow file
deselection during pure regenerate mode, and ensure proper revert handling on
abort or error. Add corresponding unit and integration tests.

Assisted-by: Gemini:Gemini 3.8 Flash
Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5
simo5 merged commit b38395d into main Oct 26, 2026
1 check 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.

1 participant