Skip to content

New commits appear to be hidden by default #1323

@scottjacobsen

Description

@scottjacobsen

Description of the bug

When I commit a few times and then run git sl I see this:
┃ ◯ aba6ab9 3m test
┃ ┃
┃ ◯ b147149 2m test2
┃ ┃
┃ ● e37e0ee 6s test3

Then when I run git prev I see this:
┃ ◯ aba6ab9 6m test
┃ ┃
┃ ● b147149 4m test2

Here I would still expect to see e37e0ee as the next commit but it seems hidden

> git next
No more child commits to go to after traversing 0 children.

Then I do:

> git unhide e37e0ee
Unhid commit: e37e0ee test3
> git sl

And then I see:
┃ ◯ aba6ab9 8m test
┃ ┃
┃ ● b147149 6m test2
┃ ┃
┃ ◯ e37e0ee 4m test3

After than I can do git next and git prev as usual. So it seems like new commits are defaulting to the hidden state.

Expected behavior

I expect new commits not to be hidden.

Actual behavior

New commits appear to be hidden after switching to a different commit.

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

git-branchless-opts 0.8.0

Version of git

git version 2.45.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions