summaryrefslogtreecommitdiffstats
path: root/pkg/commands/stash_entry.go
blob: eb70693efa7a73d47110e0101067eea83ee4fffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}