Skip to main content

sync

Function sync 

Source
pub fn sync(
    store: &mut Store,
    repo: &Repo,
    cache: &ObjectCache,
    extractor: &dyn Extractor,
) -> Result<SyncReport, SyncError>
Expand description

Sync store to the repository’s HEAD tree, extracting changed blobs with extractor and caching results in cache.

§Errors

Returns a SyncError if git access, extraction caching, or the store rebuild fails.