Skip to main content

git_policy_cli/lfs/
mod.rs

1//! What:
2//!  Git LFS support:
3//!  pre-push planning,
4//!  pointer scanning and bounded uploads.
5//! Why:
6//!  LFS is an optional feature with its own vocabulary.
7//!
8//! In TS you'd write (pseudocode):
9//! ```ts
10//! // lfs/index.ts: one `export * from './file'` per module below.
11//! ```
12
13/// When a push needs the Git LFS upload, and the texts the parent prints around it.
14pub mod lfs_pre_push;
15
16/// What the Git LFS upload sends: the remote and the refs, read from the push and the configuration Git would read.
17pub mod lfs_upload_plan;
18
19/// The configuration the Git LFS upload plan reads, and the default remote derived from it.
20pub mod lfs_upload_settings;
21
22/// Hides the credentials inside URLs in the text relayed from `git-lfs`.
23pub mod lfs_output_mask;
24
25/// Whether a blob is a Git LFS pointer, decided as `git-lfs` decides it.
26pub mod lfs_pointer;
27
28/// The LFS objects a push introduces, found in process from the commits to be pushed.
29#[cfg(unix)]
30pub mod lfs_pointer_scan;
31
32/// The upload plan narrowed to the objects the push introduces, or to nothing.
33pub mod lfs_object_plan;
34
35/// The parent's bounded or interactive run of the Git LFS upload.
36pub mod lfs_upload;
37
38/// The Git LFS step before a push the caller typed: pre-check, plan and upload with the caller's streams.
39pub mod lfs_interactive;
40
41/// The check that `git-lfs` can start, made before a push that is preceded by the upload.
42pub mod lfs_push_precheck;
43
44/// The auto-push's bounded `git push`, preceded by the upload, its pre-check and its explanation.
45pub mod lfs_bounded_push;