Skip to main content

update_ref

Function update_ref 

Source
pub fn update_ref(
    repo: &Path,
    ref_name: &str,
    commit_sha: &str,
) -> Result<(), SyncError>
Expand description

Points a ref at a commit.

Runs git update-ref <ref_name> <commit_sha>. ref_name should be a full ref name such as refs/lore/sessions.