diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-18 10:44:45 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-04-18 11:03:28 +1000 |
commit | dfb293c9859980766bace8360ad26563d02e1345 (patch) | |
tree | 180522ebd37a25267d0f33c0a9267db8cd1dce5f /pkg/commands | |
parent | 9b947b74a2170a9a89a6f6e9bdf8772bd7e4ee85 (diff) |
better upstream changes presentation
Diffstat (limited to 'pkg/commands')
-rw-r--r-- | pkg/commands/models/branch.go | 4 |
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" } |