#[non_exhaustive]pub struct OffloadOptions {
pub remote: String,
pub filter: Option<ObjectFilterSpec>,
pub lop_git_dir: Option<PathBuf>,
pub configure_lop: bool,
pub dry_run: bool,
pub now_unix: i64,
pub threads: Option<usize>,
}Expand description
Options for offload_blobs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.remote: StringThe promisor remote the blobs move to; remote.<name>.url must be set in the
main repository.
filter: Option<ObjectFilterSpec>Which blobs move: those this filter leaves out (blob:limit=<n>: blobs of n
bytes or more; blob:none: every blob). None uses
remote.<name>.partialCloneFilter, the same value clients receive through
promisor.sendFields.
lop_git_dir: Option<PathBuf>The LOP’s git directory on this machine. Needed when remote.<name>.url is
not a local path, for example an https:// URL advertised to clients for a
repository the server also has on disk.
configure_lop: boolAlso set uploadpack.allowFilter and uploadpack.allowAnySHA1InWant in the
LOP, so it can answer the lazy fetches clients send it.
dry_run: boolWork out what would move without writing anything.
now_unix: i64Current time in Unix seconds, for the gc.pid maintenance lock.
threads: Option<usize>Pack writing and indexing threads (None reads pack.threads).