Skip to main content

replace_ref_tip

Function replace_ref_tip 

Source
pub fn replace_ref_tip(
    repo: &Repository,
    ref_name: &str,
    expected_tip: ObjectId,
    new_tip: ObjectId,
    message: &str,
) -> Result<()>
Expand description

Replace a ref target with new_tip, requiring the current tip to match expected_tip.