In the Log window, if a commit is selected, and another branch is shown/hidden, should try to not move commit in Graph pane

griscom 5 months ago 0

If the Branches pane is used to show/hide branches, then this may change the height of the displayed log tree. This has the effect of shifting the Graph window contents up or down.

If there is a commit selected and visible in the Graph window, then as possible the selected commit should be kept in-place as other branches are shown/hidden. Otherwise, the commit may move or even jump off the screen, which is confusing.

This won't always be possible (e.g. hiding a branch which is the only branch at the top or bottom of the visible area), but when it is it would be nice.