mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
18 lines
262 B
Go
18 lines
262 B
Go
package commands
|
|
|
|
import "fmt"
|
|
|
|
// StashEntry : A git stash entry
|
|
type StashEntry struct {
|
|
Index int
|
|
Name string
|
|
}
|
|
|
|
func (s *StashEntry) RefName() string {
|
|
return fmt.Sprintf("stash@{%d}", s.Index)
|
|
}
|
|
|
|
func (s *StashEntry) ID() string {
|
|
return s.RefName()
|
|
}
|