GIT_LFS

Static GIT_LFS 

Source
pub static GIT_LFS: LazyLock<Result<ProcessBuilder>>
Expand description

A global cache of the git lfs command.

Returns an error if Git LFS isn’t available. Caching the command allows us to only check if LFS is installed once.

We also support a helper private environment variable to allow controlling the LFS extension from being loaded for testing purposes. Once installed, Git will always load git-lfs as a built-in alias which takes priority over loading from PATH which prevents us from shadowing the extension with other means.