class Git::Stashes

Collection of stash entries for a Git repository

This class is deprecated and will be removed in v6.0.0. Use the {Git::Repository} stash methods and {Git::StashInfo} instead: {Git::Repository#stash_infos} replaces the collection, and {Git::Repository#stash_push}, {Git::Repository#stash_apply}, and {Git::Repository#stash_clear} replace {#save}, {#apply}, and {#clear}.

@example Iterate over stash entries (deprecated)

git.stashes.each { |s| puts s.message }

@example The replacement

repo.stash_infos.each { |info| puts info.message }
repo.stash_infos.size   #=> 2
repo.stash_apply

@deprecated Use {Git::Repository#stash_infos} and {Git::StashInfo} instead

@see Git::Repository#stash_infos

@api public