diff options
Diffstat (limited to 'pkg/gui/presentation/remotes.go')
-rw-r--r-- | pkg/gui/presentation/remotes.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/gui/presentation/remotes.go b/pkg/gui/presentation/remotes.go new file mode 100644 index 000000000..24fcd0b97 --- /dev/null +++ b/pkg/gui/presentation/remotes.go @@ -0,0 +1,20 @@ +package presentation + +import ( + "github.com/jesseduffield/lazygit/pkg/commands" +) + +func GetRemoteListDisplayStrings(remotes []*commands.Remote) [][]string { + lines := make([][]string, len(remotes)) + + for i := range remotes { + lines[i] = getRemoteDisplayStrings(remotes[i]) + } + + return lines +} + +// getRemoteDisplayStrings returns the display string of branch +func getRemoteDisplayStrings(r *commands.Remote) []string { + return []string{r.Name} +} |