Skip to main content

Module stash

Module stash 

Source
Expand description

Stash module - save and restore working tree changes

Stash allows saving the current working tree state (both staged and unstaged changes) to a special commit, then restoring it later. The stash stack is stored as:

  • .void/stash/meta.bin - Encrypted metadata (messages, timestamps, etc.)
  • .void/refs/stash/<index> - Commit CIDs for each stash entry

Structs§

StashEntry
A single stash entry
StashStack
The stash stack containing all stash entries

Functions§

clear_stash
Clear all stash entries
read_stash_stack
Read the stash stack from disk
write_stash_stack
Write the stash stack to disk