pub fn fetch_local_diff() -> Result<DiffResult, RsGuardError>Expand description
Fetches the locally staged diff via git diff --cached.
ยงErrors
Returns RsGuardError::Io if the git command fails,
RsGuardError::Config if git diff --cached exits with a non-zero status,
RsGuardError::EmptyDiff if there are no staged changes,
RsGuardError::InvalidDiffContent if the output does not look like a diff,
or RsGuardError::DiffTooLarge if the diff exceeds size limits.