From 57791363ce38b805280fe40837dd61a1ec24a77e Mon Sep 17 00:00:00 2001 From: snicr Date: Tue, 17 Feb 2026 12:32:37 -0300 Subject: [PATCH] fix: now repositories ahead or behind are treated as dirty (according the documentation) --- internal/gitstatus/gitstatus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gitstatus/gitstatus.go b/internal/gitstatus/gitstatus.go index 5366efb..6091569 100644 --- a/internal/gitstatus/gitstatus.go +++ b/internal/gitstatus/gitstatus.go @@ -34,7 +34,7 @@ func Status(repoPath string) (model.RepoStatus, error) { applyFileLine(&status, line) } - status.IsDirty = status.Staged > 0 || status.Unstaged > 0 || status.Untracked > 0 + status.IsDirty = status.Staged > 0 || status.Unstaged > 0 || status.Untracked > 0 || status.Ahead > 0 || status.Behind > 0 if t, err := lastCommitTime(repoPath); err == nil { status.LastCommit = t