Skip to main content

Crate git_xet_filter

Crate git_xet_filter 

Source
Expand description

XET large file storage filter for git2db

Provides transparent integration with XET repositories via libgit2 filters.

This crate can be used standalone or as part of git2db.

§Feature Flags

  • xet-storage (disabled by default): Enables actual XET CAS integration. Without this feature, only configuration types and error handling are available.

§Available without xet-storage:

§Available with xet-storage:

Re-exports§

pub use config::XetConfig;
pub use config::HUGGINGFACE_XET_ENDPOINT;
pub use error::Result;
pub use error::XetError;
pub use error::XetErrorKind;

Modules§

callbacks
C callback implementations for libgit2 filter
config
Configuration for XET filter
error
Error handling for XET filter operations
ffi
Safe FFI bindings to libgit2’s filter system
filter
XET filter implementation with type state pattern
gittorrent_storage
GittorrentStorage — StorageBackend implementation for P2P distribution.
runtime
Dedicated runtime for XET filter async operations
storage
Storage backend for XET content-addressed storage operations.

Functions§

clear_last_error
Clear the last XET filter error for this thread
clear_smudge_progress
Clear the smudge progress callback for the current thread.
get_config
Get the XET config used during initialization
initialize
Initialize XET filter support
is_initialized
Check if XET filter is initialized
last_error
Get the last XET filter error from this thread
set_smudge_progress
Set a callback to receive per-file smudge progress during checkout. Resets the internal counter to 0.

Type Aliases§

SmudgeProgressCallback
Callback invoked on each smudge (download) operation during checkout.