Skip to main content

apply_sparse_checkout

Function apply_sparse_checkout 

Source
pub fn apply_sparse_checkout(
    worktree_root: impl AsRef<Path>,
    git_dir: impl AsRef<Path>,
    format: ObjectFormat,
    sparse: &SparseCheckout,
) -> Result<ApplySparseResult>
Expand description

Conflicted entries (stage != 0) are never given the skip-worktree bit and are left alone, matching upstream Git. The index is rewritten in place.