get_raw

Function get_raw 

Source
pub fn get_raw(path: Option<&Path>) -> Result<Vec<String>>
Expand description

Retrieves the current git diff raw output with -U0 for fine-grained diffs as a Vec<String>.

§Errors

  • If the git diff command fails to execute or returns a non-zero exit code.
  • If extracting the output from the command fails.

§Rationale

Uses -U0 to produce the most fine-grained line diffs.