group
group__libshare__fsrev
Provides the capabilities to track ongoing revisions to a file.
Content Revision History
int shfs_rev_init
(shfs_ino_t *file)
int shfs_rev_clear
(shfs_ino_t *file)
shfs_ino_t* shfs_rev_branch_resolve
(shfs_ino_t *repo, char *name)
Obtain a revision inode from a branch name.
shfs_ino_t* shfs_rev_tag_resolve
(shfs_ino_t *repo, char *name)
Obtain a revision inode from a tag name.
shfs_ino_t* shfs_rev_base
(shfs_ino_t *repo)
Obtain the current committed revision.
int shfs_rev_ref_read
(shfs_ino_t *file, char *group, char *name, shbuf_t *buff)
int shfs_rev_ref_write
(shfs_ino_t *file, char *group, char *name, shbuf_t *buff)
shfs_ino_t* shfs_rev_prev
(shfs_ino_t *rev)
int shfs_rev_delta_read
(shfs_ino_t *rev, shbuf_t *buff)
int shfs_rev_delta_write
(shfs_ino_t *rev, shbuf_t *buff)
const char* shfs_rev_desc_get
(shfs_ino_t *rev)
int shfs_rev_commit
(shfs_ino_t *file, shfs_ino_t **rev_p)
int shfs_rev_cat
(shfs_ino_t *file, shkey_t *rev_key, shbuf_t *buff, shfs_ino_t **rev_p)
int shfs_rev_delta
(shfs_ino_t *file, shbuf_t *diff_buff)
Obtain a binary delta containing the differences between the current file's data-content and the last committed revision's data-content.
int shfs_rev_branch
(shfs_ino_t *repo, char *name, shfs_ino_t *rev)
int shfs_rev_tag
(shfs_ino_t *repo, char *name, shfs_ino_t *rev)
int shfs_rev_switch
(shfs_ino_t *file, char *ref_name, shfs_ino_t **rev_p)
int shfs_rev_revert
(shfs_ino_t *file)
int shfs_rev_checkout
(shfs_ino_t *file, shkey_t *key, shfs_ino_t **rev_p)
int shfs_rev_diff
(shfs_ino_t *file, shkey_t *rev_key, shbuf_t *buff)
void shfs_rev_desc_set
(shfs_ino_t *rev, char *desc)