This library provides several helpers to implement a backup system on top of git.
- git (>= 1.5) (binary)
- s (emacs library)
See the git-backup.el
internal documentation to get more details.
Records a file version in backup folder.
Returns an assoc list for a given file with the commit id as key and a string rendered using git log pretty=format:<format-string>
with format-string
a format string supported by git log
.
Removes a file from the backup storage.
Opens a backup in a new buffer using a commit id given by git-backup-list-file-change-time
and a filename.
Replaces the current buffer with the content of the buffer found using a commit id given by git-backup-list-file-change-time
and a filename.
Opens a backup with ediff using a commit id given by git-backup-list-file-change-time
and a filename.
Runs manually git gc
to reduce the size of the storage.
First you need to install cask :
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
Add cask to your path :
export PATH=$PATH:/home/YOUR_USERNAME/.cask/bin
Download dependencies using cask :
make downloads
Run tests :
make test