Skip to main content

materialize_worktree_blob

Function materialize_worktree_blob 

Source
pub fn materialize_worktree_blob(
    odb: &Odb,
    path: &Path,
    meta: &Metadata,
    conv: &ConversionConfig,
    file_attrs: &FileAttrs,
    rel_path: &str,
    index_entry: Option<&IndexEntry>,
    filter_process: Option<&FilterProcessState>,
) -> Result<ObjectId>
Expand description

Read, normalize (CRLF/attributes), and store a worktree blob once.

ยงErrors

Returns Error::Io when the file cannot be read, and Error::Filter when a filter.<driver>.required clean filter fails or cannot be started; content is never stored or hashed unfiltered in that case.