pub async fn diff(path: &Path, staged: bool) -> Result<String, GitError>
Get the diff (unified format). staged = true shows staged changes, false shows unstaged.
staged = true
false