mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
refactor contexts
This commit is contained in:
parent
145c69d9ae
commit
d82f175e79
54 changed files with 1562 additions and 1248 deletions
|
@ -43,7 +43,7 @@ func (gui *Gui) currentDiffTerminals() []string {
|
|||
return []string{gui.State.Contexts.CommitFiles.GetRefName()}
|
||||
case context.LOCAL_BRANCHES_CONTEXT_KEY:
|
||||
// for our local branches we want to include both the branch and its upstream
|
||||
branch := gui.getSelectedBranch()
|
||||
branch := gui.State.Contexts.Branches.GetSelected()
|
||||
if branch != nil {
|
||||
names := []string{branch.ID()}
|
||||
if branch.IsTrackingRemote() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue