pub fn make_ref(
    repository: &Path,
    name: &str,
    sha: &str,
) -> Result<(), Error> {
    let status = process::Command::new("git")
        .args(&["update-ref", name, sha])
        .current_dir(repository)
        .stdin(process::Stdio::null())
        .status()?;
    if !status.success() {
        return Err(Error::Git(format!(
            "`git update-ref` returned {}",
            status
        )));
    }
    Ok(())
}
/// Make a "raw" reference with the given full path at the given SHA-1
///
/// Those need NOT be actual branches (e.g. refs/heads/). The full path should
/// be given, starting with `refs/`.
///
/// This is useful to create refs that will not be listed in git-branch output
/// and therefore will not appear in `included_branches()` and
/// `including_branches()` output.
Make a "raw" reference with the given full path at the given SHA-1
Those need NOT be actual branches . The full path should
be given, starting with `refs/`.

This is useful to create refs that will not be listed in git-branch output
and therefore will not appear in `included_branches()` and
`including_branches()` output.
Make a " raw " reference with the given full path at the given SHA - 1 Those need NOT be actual branches . The full path should be given starting with ` refs / ` . This is useful to create refs that will not be listed in git - branch output and therefore will not appear in ` included_branches () ` and ` including_branches () ` output .
pub fn make_ref(
    repository: &Path,
    name: &str,
    sha: &str,
) -> Result<(), Error> {
    let status = process::Command::new("git")
        .args(&["update-ref", name, sha])
        .current_dir(repository)
        .stdin(process::Stdio::null())
        .status()?;
    if !status.success() {
        return Err(Error::Git(format!(
            "`git update-ref` returned {}",
            status
        )));
    }
    Ok(())
}
pub fn make_ref ( repository : & Path , name : & str , sha : & str , ) -> Result < ( ) , Error > { let status = process :: Command :: new ( " " ) . args ( & [ " " , name , sha ] ) . current_dir ( repository ) . stdin ( process :: Stdio :: null ( ) ) . status ( ) ? ; if ! status . success ( ) { return Err ( Error :: Git ( format ! ( " " status ) ) ) ; } Ok ( ( ) ) }
Make a "raw" reference with the given full path at the given SHA-1
Those need NOT be actual branches (e.g.
Make a " raw " reference with the given full path at the given SHA - 1 Those need NOT be actual branches ( e . g .
repository
&Path
name
&str
sha
&str
repository
&Path
name
&str
sha
&str