2020-02-25 11:55:36 +02:00
|
|
|
package presentation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/commands"
|
|
|
|
)
|
|
|
|
|
|
|
|
func GetStashEntryListDisplayStrings(stashEntries []*commands.StashEntry) [][]string {
|
|
|
|
lines := make([][]string, len(stashEntries))
|
|
|
|
|
|
|
|
for i := range stashEntries {
|
|
|
|
lines[i] = getStashEntryDisplayStrings(stashEntries[i])
|
|
|
|
}
|
|
|
|
|
|
|
|
return lines
|
|
|
|
}
|
|
|
|
|
|
|
|
// getStashEntryDisplayStrings returns the display string of branch
|
|
|
|
func getStashEntryDisplayStrings(s *commands.StashEntry) []string {
|
2020-03-27 13:53:50 +02:00
|
|
|
return []string{s.Name}
|
2020-02-25 11:55:36 +02:00
|
|
|
}
|