mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-12-01 22:52:01 +02:00
smarter refreshing for tags and remotes
This commit is contained in:
@@ -12,8 +12,14 @@ import (
|
||||
|
||||
// never call this on its own, it should only be called from within refreshCommits()
|
||||
func (gui *Gui) refreshStatus() {
|
||||
gui.State.RefreshingStatusMutex.Lock()
|
||||
defer gui.State.RefreshingStatusMutex.Unlock()
|
||||
|
||||
currentBranch := gui.currentBranch()
|
||||
if currentBranch == nil {
|
||||
// need to wait for branches to refresh
|
||||
return
|
||||
}
|
||||
status := ""
|
||||
|
||||
if currentBranch.Pushables != "" && currentBranch.Pullables != "" {
|
||||
|
||||
Reference in New Issue
Block a user