Skip to main content

diff

Function diff 

Source
pub async fn diff(path: &Path, staged: bool) -> Result<String, GitError>
Expand description

Get the diff (unified format). staged = true shows staged changes, false shows unstaged.