1package git23import "github.com/aymanbagabas/git-module"45// StashDiff returns the diff of the given stash index.6func (r *Repository) StashDiff(index int) (*Diff, error) {7 diff, err := r.Repository.StashDiff(index, DiffMaxFiles, DiffMaxFileLines, DiffMaxLineChars, git.DiffOptions{8 CommandOptions: git.CommandOptions{9 Envs: []string{"GIT_CONFIG_GLOBAL=/dev/null"},10 },11 })12 if err != nil {13 return nil, err14 }15 return toDiff(diff), nil16}