Skip to main content

get_raw

Function get_raw 

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

Retrieves the current git diff raw output with -U0 as a single String.

Callers should pass the returned string to get_hunks which splits into lines internally, avoiding per-line String allocations.

ยงErrors

  • git diff command fails.