Skip to main content

text

Function text 

Source
pub async fn text(git_dir: &Path, args: &[&str]) -> Result<String, ForgeError>
Expand description

Run and return stdout as lossy UTF-8; any failure (non-zero exit, truncation) is ForgeError::NotFound when git complains about an unknown object, else ForgeError::Backend.