Documentation ¶
Overview ¶
Package store provides support for keeping track of changes to files. It can keep a copy of a file, or a patch to reverse changes to a file.
Index ¶
- func Hash(things ...string) string
- type Store
- func (store *Store) ApplyPatch(filename, label string) error
- func (store *Store) RestoreFile(filename, label string) error
- func (store *Store) SaveFile(filename, label string) error
- func (store *Store) SavePatch(filename, origStr, newStr, label string) error
- func (store *Store) WriteFile(filename string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Store ¶
type Store struct {
Dir string
}
Store is for storing change information for a set of files.
func (*Store) ApplyPatch ¶
ApplyPatch applies a patch to a file.
func (*Store) RestoreFile ¶
RestoreFile restores a file from backup.
Click to show internal directories.
Click to hide internal directories.