jesseduffield / jesseduffield/lazygit
Add an option to the all commit git log to exclude refs
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
### 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.
Contributor guide
Assessment
This issue has not been assessed yet.