mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-26 05:37:18 +02:00
21 lines
499 B
Go
21 lines
499 B
Go
|
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 {
|
||
|
return []string{s.DisplayString}
|
||
|
}
|