Skip to content

amend: Fix last-touched functionality#267

Open
jerry-skydio wants to merge 1 commit into
mainfrom
jerry/revup/main/fixlasttouched
Open

amend: Fix last-touched functionality#267
jerry-skydio wants to merge 1 commit into
mainfrom
jerry/revup/main/fixlasttouched

Conversation

@jerry-skydio

Copy link
Copy Markdown
Collaborator

last-touched will amend the file into the correct
commit, but incorrectly then removes the changes immediately
when replaying the rest of the stack on top. This was not
caught by tests because those only checked the exact commit
and file, without checking that the rest of the stack is
correct.

Fix this by reimplementing with the merge-tree engine, which
is more modern and faster anyway. Update tests to catch this case.

@jerry-skydio

jerry-skydio commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author

Reviews in this chain:
#267 amend: Fix last-touched functionality

@jerry-skydio

jerry-skydio commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator Author
# head base diff date summary
0 8c729e81 189dacb5 diff Jun 25 13:06 PM 3 files changed, 75 insertions(+), 24 deletions(-)
1 9279b2fe 29c140d2 diff Jun 25 13:35 PM 0 files changed
2 6f491aac d8008423 rebase Jun 26 10:38 AM 0 files changed

Base automatically changed from jerry/revup/main/amendcommit to main June 25, 2026 20:34
@jerry-skydio jerry-skydio force-pushed the jerry/revup/main/fixlasttouched branch from 8c729e8 to 9279b2f Compare June 25, 2026 20:35
last-touched will amend the file into the correct
commit, but incorrectly then removes the changes immediately
when replaying the rest of the stack on top. This was not
caught by tests because those only checked the exact commit
and file, without checking that the rest of the stack is
correct.

Fix this by reimplementing with the merge-tree engine, which
is more modern and faster anyway. Update tests to catch this case.
@jerry-skydio jerry-skydio force-pushed the jerry/revup/main/fixlasttouched branch from 9279b2f to 6f491aa Compare June 26, 2026 17:38
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