Skip to content

Commit

Permalink
fixup! Show divergence from base branch in branches list
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed May 31, 2024
1 parent 3f6cf80 commit 5db3af2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/commands/git_commands/branch_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (self *BranchLoader) GetBehindBaseBranchValuesForAllBranches(
if err != nil {
return err
}
// The format of the output is "<ahead>\t<behind>"
aheadBehindStr := strings.Split(strings.TrimSpace(output), "\t")
if len(aheadBehindStr) == 2 {
if value, err := strconv.Atoi(aheadBehindStr[1]); err == nil {
Expand Down

0 comments on commit 5db3af2

Please sign in to comment.