git_cmd 0.6.28

Wrapper around git cli
Documentation
1
2
3
4
5
6
7
use anyhow::Context;

pub(crate) fn string_from_bytes(bytes: Vec<u8>) -> anyhow::Result<String> {
    let stdout = String::from_utf8(bytes).context("cannot extract stderr")?;
    let stdout = stdout.trim();
    Ok(stdout.to_string())
}