Skip to content

Bisect tags #2346

Closed
Closed

Description

@Dagur

Is your feature request related to a problem? Please describe.
Lazygit has bisect support but you have to select a specific commit. I quickly get lost because there's a lot commits to go through.

Describe the solution you'd like
I would like to be able to select a tag and bisect from there

Activity

  1. mark2185 commented on Jan 3, 2023

    @mark2185
    Collaborator

    Do I understand correctly, you want to bisect tags?

  2. Dagur commented on Jan 3, 2023

    @Dagur
    Author

    Yes. I would like to go to the branches panel, select tags and press b on an entry there.

    Or maybe there's an easy way to do this already?

  3. mark2185 commented on Jan 3, 2023

    @mark2185
    Collaborator

    Ah, so you would just like to start on a tag? Not necessarily bisect only tags?

    The easiest way I can currently think of is copying the hash with ctrl+o or something, finding it among the commits and going from there.

  4. Dagur commented on Jan 3, 2023

    @Dagur
    Author

    Maybe a go to commit option on a tag would be useful then

  5. mark2185 commented on Jan 3, 2023

    @mark2185
    Collaborator

    @jesseduffield do we have any mechanism of switching active panel and moving the cursor?

  6. jesseduffield commented on Jan 3, 2023

    @jesseduffield
    Owner

    @mark2185 it would be something like self.c.PushContext(context) and then context.SetSelectedLineIdx(idx)

  7. mark2185 commented on Jan 9, 2023

    @mark2185
    Collaborator

    @Dagur are you maybe interesting in taking this up?

    Adding a jump to commit functionality when browsing tags?

  8. Dagur commented on Jan 9, 2023

    @Dagur
    Author

    I'll give it a shot but I've never written anything in go 😅

  9. Dagur commented on Jan 10, 2023

    @Dagur
    Author

    I was able to create a command and focus on the commits using self.c.PushContext(context) but that's where I'm stuck. I can't figure out how or where to get the commit index.

  10. mark2185 commented on Jan 10, 2023

    @mark2185
    Collaborator

    Feel free to open up a PR and we can discuss it there :)

  11. jesseduffield commented on Jan 10, 2023

    @jesseduffield
    Owner

    FWIW you can go context.GetSelectedIdx()

  12. Dagur commented on Jan 11, 2023

    @Dagur
    Author

    I managed to get it working #2359

  13. stefanhaller commented on Oct 31, 2026

    @stefanhaller
    Collaborator

    #6168 adds the ability to mark a tag (or a branch) as the initial good/bad item directly.

  14. added a commit that references this issue on Oct 31, 2026
    c9c0db4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions