Skip to content

Commit 4da9a43

Browse files
committed
fixup! Commit reordering: Avoid asking about the same conflict twice
msg
1 parent 0ee3509 commit 4da9a43

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_rerere.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,9 @@ def test_replay_resolution_recorded_by_git(repo: Repository) -> None:
142142
"""
143143
)
144144

145-
# Git-revise may well reuse an intermediate state resolution,
146-
# but actually knows that nobody expects the final state to change
147-
# when just changing the order it's done: Whenever the final state
148-
# is known, that pointless second conflict is bypassed.
145+
# Test reusing the same recorded resolutions with git-revise.
146+
# Except the last, that is: The total diff, hence the final state,
147+
# of any reordering is a holy invariant.
149148
with editor_main(("-i", "HEAD~~")) as ed:
150149
flip_last_two_commits(repo, ed)
151150

0 commit comments

Comments
 (0)