jesseduffield / jesseduffield/lazygit

Branch Visualization

Open
#4,848 2 comments 3 reactions 0 assignees View on GitHub
enhancement
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 have a lot of branches in my project. Some of these branches are sub branches of other branches. So, for example, a minimized version of my project looks like
```
mobile-branding
fix-ascii-rendering/
fix-mobile ---/ \ (pr merged)
master -----<-----------------------------------------
branding ----/ (pr merged)

```
But lazygit shows the branches like
```
master
fix-mobile
fix-ascii-rendering
branding
mobile-branding
```

Which is inconvenient.

### Describe the solution you'd like
Like the commits panel, it would be nice if Lazygit offered some sort of visualization of how the branches are diverging. Perhaps this could be included in the name itself. Something like
```
master
master/fix-mobile
fix-mobile/fix-ascii-rendering
master/branding
fix-ascii-rendering/mobile-branding
```

would already be so much easier on my eyes. For a more concice notation, a tree could be used.
```
master
L fix-mobile
L fix-ascii-rendering
L mobile-branding
L branding
```

### Describe alternatives you've considered
N/A. I just try to keep track in my head.

### Additional context
When I used GIT via CLI, I used to use this command to create a visualization of sorts, but this is a log of commits and not branches.
`git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.