Skip to content

add amend mode#1421

Open
zougloub wants to merge 1 commit intojonas:masterfrom
exmakhina:master
Open

add amend mode#1421
zougloub wants to merge 1 commit intojonas:masterfrom
exmakhina:master

Conversation

@zougloub
Copy link
Copy Markdown

@zougloub zougloub commented May 2, 2026

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,

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
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