Skip to content

Add an option to the all commit git log to exclude refs #5332

@ADIX7

Description

@ADIX7

Is your feature request related to a problem? Please describe.

I want to use lazygit in a jj repo. I usually use the all commits view in the commit panel. Unfortunately jj creates a lot of refs under refs/jj/ so previous commits spam the view. Fortunately there is an easy fix:

Describe the solution you'd like

Lazygit uses the --all flag to show all the commits but this includes the refs/jj/* as well. To hide them, the --exclude arg can be used, in this case --exclude refs/jj/*.

I have 2 propositions, a specific for this exact case and a general one:

  • general: add a new option to set the exclude param as the user wants, this would be a ref (string) list in the config
  • specific to jj: add a 'hide-jj-refs' option that would result in the --exclude refs/jj/* arg

I know that compatibility with non-git vcs-es is not a goal, but the exclude arg can be useful in other scenarios as well if that is more viable, but even the jj specific option would be a small change.

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