diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 18:34:01 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 20:48:49 +1000 |
commit | 44248d9ab0818dfca6a5c1f5ee2ad5b0d45d4998 (patch) | |
tree | 832829129b6cc3690fc51e2c254d8b71d0de4657 /pkg/gui/presentation | |
parent | c87b2c02fa2c82dd07a77335df6c7d2e7817a012 (diff) |
pull branch model out into models package
Diffstat (limited to 'pkg/gui/presentation')
-rw-r--r-- | pkg/gui/presentation/branches.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/presentation/branches.go b/pkg/gui/presentation/branches.go index 3e5c2d625..17107698d 100644 --- a/pkg/gui/presentation/branches.go +++ b/pkg/gui/presentation/branches.go @@ -5,12 +5,12 @@ import ( "strings" "github.com/fatih/color" - "github.com/jesseduffield/lazygit/pkg/commands" + "github.com/jesseduffield/lazygit/pkg/models" "github.com/jesseduffield/lazygit/pkg/theme" "github.com/jesseduffield/lazygit/pkg/utils" ) -func GetBranchListDisplayStrings(branches []*commands.Branch, fullDescription bool, diffName string) [][]string { +func GetBranchListDisplayStrings(branches []*models.Branch, fullDescription bool, diffName string) [][]string { lines := make([][]string, len(branches)) for i := range branches { @@ -22,7 +22,7 @@ func GetBranchListDisplayStrings(branches []*commands.Branch, fullDescription bo } // getBranchDisplayStrings returns the display string of branch -func getBranchDisplayStrings(b *commands.Branch, fullDescription bool, diffed bool) []string { +func getBranchDisplayStrings(b *models.Branch, fullDescription bool, diffed bool) []string { displayName := b.Name if b.DisplayName != "" { displayName = b.DisplayName |