1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

WIP Show both ahead and behind

This commit is contained in:
Stefan Haller
2024-05-04 09:25:49 +02:00
committed by Jesse Duffield
parent 6eaece3696
commit 6d2ec43596
3 changed files with 23 additions and 5 deletions

View File

@ -36,6 +36,12 @@ type Branch struct {
// determined yet, or up to date with base branch. (We don't need to
// distinguish the two, as we don't draw anything in both cases.)
BehindBaseBranch atomic.Int32
// How far our branch is ahead of its base branch. 0 means either not
// determined yet, or there are no commits on this branch yet, or the branch
// is already merged. (We don't need to distinguish these, as we don't draw
// anything in all these cases.)
AheadOfBaseBranch atomic.Int32
}
func (b *Branch) FullRefName() string {