Skip to main content

git_diff_in_repo

Function git_diff_in_repo 

Source
pub fn git_diff_in_repo(repo_root: &Path) -> Result<String>
Expand description

Get the diff of all changes (unstaged and staged) by discovering from an explicit path.

This avoids coupling diff generation to the process current working directory.

ยงErrors

Returns error if the operation fails.