You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Copying multiple hashes that are consecutive in the gitui revlog display yields incorrect dotted range if the commit history is not linear.
To Reproduce
Steps to reproduce the behavior:
Build a test graph:
git init
touch a
git add -A
git commit -m 'a'
touch b
git add -A
git commit -m 'b'
git checkout HEAD~ -b c
touch c
git add -A
git commit -m 'c'
git checkout -
git merge --no-ff c
Start gitui
Switch to Log [2]
Select commit with message 'c'
Press space
Select commit with message 'b'
Press space
Press y to yank commits
On the result, run get rev-list '<copied text here>'
git rev-list only outputs one commit
Expected behavior git rev-list lists the two selected commits
Screenshots
Constructed history:
Revlog with selection
Yanked commit sequence and rev-list output
Context (please complete the following information):