add amend mode#1421
Open
zougloub wants to merge 1 commit intojonas:masterfrom
Open
Conversation
Functionality inspired by git-cola. Somehow I appreciate this feature, but this week I broke my Qt setup and didn't have time to recompile it, and git-cola was out of order, which prompted use of tig. Instead of working towards adding a commit over our HEAD, we're considering a HEAD~1 baseline (which is in principle, not in actuality). The stage view presents a fake-index with differences from HEAD~1. Committing recalls the previous commit, for amending. Assisted-by: codex-gpt-5.4
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.
Hey there,
I've had tig on the computer for years, but not relied on it too much: there was a thing that had made me rely on git cola for editing commits, it was its amend mode.
The amend mode allows to directly stage amend commits.
But a Gentoo update on my laptop this week-end was not successful and I was left without a git-cola... but I needed to code, and went back to tig as I didn't have much of a choice, and have been trying to rely more on TUI interfaces.
Something that I also have now is access to automatic coding, and with minimal free time on my end, quickly enough Codex got a good portion of this changeset done, without too much hand-holding.
I was not familiar with the tig codebase, and I can't claim that I still am, but the changes look straightforward, a bit of indirection was added in order to keep the non-amend vs. amend paths close.
What puzzled me more was the style to be used for continuation lines (sometimes tabs are used, sometimes spaces), and I "followed" as much as I could.
I used the feature and it seems good enough for a review.
Thank you,