jesseduffield / jesseduffield/lazygit

Some branch operations use checked out branch, others use selected branch

Open
#2,795 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Describe the bug**
In the "Local Branches" box, some branch operations use checked out branch, while others use the selected branch

**To Reproduce**
Steps to reproduce the behavior:

1. check out a branch and then use j/k to select a different branch
2. press `P`, this will push the checked out branch.
3. press `o`, this will open a pull request for the selected branch

This is confusing since both commands operate on a single branch, so its not clear why there are two different mental models here.

**Expected behavior**

Either:
* the menu brought up `?` should display which operations use the checked out branch and which on the selected branch
* all commands should operate on one or the other (obviously commands like rebase are excluded from this since they need to use both)

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version info:**
```console
~> lazygit --version
commit=v0.38.2, build date=2023-05-03T15:21:01Z, build source=binaryRelease, version=0.38.2, os=linux, arch=amd64, git version=2.41.0
~> git --version
git version 2.41.0
```

This tool is really fantastic btw, thanks.

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.