git_diff_tree_to_workdir_with_index

Create a diff between a tree and the working directory using index data to account for staged deletes, tracked files, etc.

This emulates git diff <tree> by diffing the tree to the index and the index to the working directory and blending the results into a single diff that includes staged deleted, etc.

extern (C) nothrow @nogc
int
git_diff_tree_to_workdir_with_index

Parameters

diff .git_diff**

A pointer to a git_diff pointer that will be allocated.

repo libgit2_d.types.git_repository*

The repository containing the tree.

old_tree libgit2_d.types.git_tree*

A git_tree object to diff from, or null for empty tree.

opts const(.git_diff_options)*

Structure with options to influence diff or null for defaults.

Meta