Skip to main content

scripted_fixture_writable_with_git_version

Function scripted_fixture_writable_with_git_version 

Source
pub fn scripted_fixture_writable_with_git_version(
    script_name: impl AsRef<Path>,
    is_git_version_compatible: impl FnOnce((u8, u8, u8)) -> bool,
) -> Result<Option<TempDir>>
Expand description

Produce a writable scripted fixture when the installed Git version is compatible, or extract it from a matching archive otherwise.

This is the writable equivalent of scripted_fixture_read_only_with_git_version(). It returns None when Git is incompatible and no matching archive is available.