group
group__libshare__fsrev
Provides the capabilities to track ongoing revisions to a file.

Content Revision History

function
int shfs_rev_init
(shfs_ino_t *file)
function
int shfs_rev_clear
(shfs_ino_t *file)
function
shfs_ino_t* shfs_rev_branch_resolve
(shfs_ino_t *repo, char *name)
Obtain a revision inode from a branch name.
function
shfs_ino_t* shfs_rev_tag_resolve
(shfs_ino_t *repo, char *name)
Obtain a revision inode from a tag name.
function
shfs_ino_t* shfs_rev_base
(shfs_ino_t *repo)
Obtain the current committed revision.
function
int shfs_rev_ref_read
(shfs_ino_t *file, char *group, char *name, shbuf_t *buff)
function
int shfs_rev_ref_write
(shfs_ino_t *file, char *group, char *name, shbuf_t *buff)
function
shfs_ino_t* shfs_rev_prev
(shfs_ino_t *rev)
function
int shfs_rev_delta_read
(shfs_ino_t *rev, shbuf_t *buff)
function
int shfs_rev_delta_write
(shfs_ino_t *rev, shbuf_t *buff)
function
const char* shfs_rev_desc_get
(shfs_ino_t *rev)
function
int shfs_rev_commit
(shfs_ino_t *file, shfs_ino_t **rev_p)
function
int shfs_rev_cat
(shfs_ino_t *file, shkey_t *rev_key, shbuf_t *buff, shfs_ino_t **rev_p)
function
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.
function
int shfs_rev_branch
(shfs_ino_t *repo, char *name, shfs_ino_t *rev)
function
int shfs_rev_tag
(shfs_ino_t *repo, char *name, shfs_ino_t *rev)
function
int shfs_rev_switch
(shfs_ino_t *file, char *ref_name, shfs_ino_t **rev_p)
function
int shfs_rev_revert
(shfs_ino_t *file)
function
int shfs_rev_checkout
(shfs_ino_t *file, shkey_t *key, shfs_ino_t **rev_p)
function
int shfs_rev_diff
(shfs_ino_t *file, shkey_t *rev_key, shbuf_t *buff)
function
void shfs_rev_desc_set
(shfs_ino_t *rev, char *desc)