Add commit --amend support with UI toggle and refresh product roadmap#7
Open
tspython wants to merge 1 commit into
Open
Add commit --amend support with UI toggle and refresh product roadmap#7tspython wants to merge 1 commit into
tspython wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
PRODUCT_ROADMAP.mdso planning and priorities are aligned with the repository audit.Description
commit_amend: booltoStateand update the commit modal to display amend state and hint text, withCtrl+Aas a toggle in the commit prompt; input handling now passes thecontrolmodifier to the commit handler viahandle_commit_input(&Key, ctrl: bool).amend: booltoGitCommand::Commitand include--amendin both thedescription()string and the actual command arguments whenamendis true, plus introducecommit_with_options(...)onGitModeland preserve the oldcommit(...)API.git.commit_with_options(&message, false, amend)and update status messages to indicate when commits are amended.PRODUCT_ROADMAP.mdwith an expanded, baseline-grounded roadmap and audit summary to document implemented capabilities, gaps, principles, phases, and an immediate backlog; add one unit testcommit_command_description_includes_amend_when_requestedto verify the command description includes--amend.Testing
cargo test, which executed unit tests including the newcommit_command_description_includes_amend_when_requestedand all tests completed successfully.Ctrl+Atoggling logic by exercising the commit input state in unit/interactive checks (automated unit tests cover the command description change).Codex Task