Skip to main content

diff_working

Function diff_working 

Source
pub fn diff_working<S: ObjectStoreExt>(
    store: &S,
    vault: &KeyVault,
    commit: &VoidCid,
    workspace: &Path,
) -> Result<TreeDiff>
Expand description

Computes the diff between a commit and the working tree.

§Arguments

  • store - Object store for fetching encrypted objects
  • vault - Key vault for decryption
  • commit - CID of the commit to compare against
  • workspace - Path to the workspace directory

§Returns

A TreeDiff showing changes in the working tree relative to the commit.