summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-04-18 10:44:45 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-04-18 11:03:28 +1000
commitdfb293c9859980766bace8360ad26563d02e1345 (patch)
tree180522ebd37a25267d0f33c0a9267db8cd1dce5f /pkg/commands
parent9b947b74a2170a9a89a6f6e9bdf8772bd7e4ee85 (diff)
better upstream changes presentation
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/models/branch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/commands/models/branch.go b/pkg/commands/models/branch.go
index b41e157f3..1bf7369d9 100644
--- a/pkg/commands/models/branch.go
+++ b/pkg/commands/models/branch.go
@@ -44,6 +44,10 @@ func (b *Branch) RemoteBranchStoredLocally() bool {
return b.IsTrackingRemote() && b.Pushables != "?" && b.Pullables != "?"
}
+func (b *Branch) RemoteBranchNotStoredLocally() bool {
+ return b.IsTrackingRemote() && b.Pushables == "?" && b.Pullables == "?"
+}
+
func (b *Branch) MatchesUpstream() bool {
return b.RemoteBranchStoredLocally() && b.Pushables == "0" && b.Pullables == "0"
}