Skip to main content

commit_file_diff

Function commit_file_diff 

Source
pub fn commit_file_diff(
    endpoint: &RemoteEndpoint,
    workdir: &Path,
    sha: &str,
    rel: &Path,
    cancel: &CancelToken,
) -> Result<FileDiff, RemoteGitError>
Expand description

One file’s structured delta at sha against its first parent (root commits diff against empty): the dive view’s data, built from the two blobs and the same hunk builder the local libgit2 path uses.