diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 18:41:06 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 20:48:49 +1000 |
commit | eda4619a4f05b6720d091b31e60515f7289b9a47 (patch) | |
tree | 86c39ebf92ffc21c5abe751a6faf151788083242 /pkg/gui/presentation | |
parent | e849ca337237f564dd90a09e40b9ca8f9d62352a (diff) |
move remotes and remote branches
Diffstat (limited to 'pkg/gui/presentation')
-rw-r--r-- | pkg/gui/presentation/remote_branches.go | 6 | ||||
-rw-r--r-- | pkg/gui/presentation/remotes.go | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/presentation/remote_branches.go b/pkg/gui/presentation/remote_branches.go index e52e6d7f3..5d1c76709 100644 --- a/pkg/gui/presentation/remote_branches.go +++ b/pkg/gui/presentation/remote_branches.go @@ -1,12 +1,12 @@ package presentation import ( - "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 GetRemoteBranchListDisplayStrings(branches []*commands.RemoteBranch, diffName string) [][]string { +func GetRemoteBranchListDisplayStrings(branches []*models.RemoteBranch, diffName string) [][]string { lines := make([][]string, len(branches)) for i := range branches { @@ -18,7 +18,7 @@ func GetRemoteBranchListDisplayStrings(branches []*commands.RemoteBranch, diffNa } // getRemoteBranchDisplayStrings returns the display string of branch -func getRemoteBranchDisplayStrings(b *commands.RemoteBranch, diffed bool) []string { +func getRemoteBranchDisplayStrings(b *models.RemoteBranch, diffed bool) []string { nameColorAttr := GetBranchColor(b.Name) if diffed { nameColorAttr = theme.DiffTerminalColor diff --git a/pkg/gui/presentation/remotes.go b/pkg/gui/presentation/remotes.go index 5ad5f77c8..2c099fb18 100644 --- a/pkg/gui/presentation/remotes.go +++ b/pkg/gui/presentation/remotes.go @@ -4,12 +4,12 @@ import ( "fmt" "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 GetRemoteListDisplayStrings(remotes []*commands.Remote, diffName string) [][]string { +func GetRemoteListDisplayStrings(remotes []*models.Remote, diffName string) [][]string { lines := make([][]string, len(remotes)) for i := range remotes { @@ -21,7 +21,7 @@ func GetRemoteListDisplayStrings(remotes []*commands.Remote, diffName string) [] } // getRemoteDisplayStrings returns the display string of branch -func getRemoteDisplayStrings(r *commands.Remote, diffed bool) []string { +func getRemoteDisplayStrings(r *models.Remote, diffed bool) []string { branchCount := len(r.Branches) nameColorAttr := theme.DefaultTextColor |