diff options
Diffstat (limited to 'pkg/commands/stash_entry.go')
-rw-r--r-- | pkg/commands/stash_entry.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/commands/stash_entry.go b/pkg/commands/stash_entry.go index 94e4417d4..eb70693ef 100644 --- a/pkg/commands/stash_entry.go +++ b/pkg/commands/stash_entry.go @@ -1,7 +1,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) +} |