Function branchless::commands::gc::mark_commit_reachable [−][src]
pub fn mark_commit_reachable(repo: &Repository, commit_oid: Oid) -> Result<()>
Mark a commit as reachable.
Once marked as reachable, the commit won’t be collected by Git’s garbage
collection mechanism until first garbage-collected by branchless itself
(using the gc
function).
Args:
repo
: The Git repository.commit_oid
: The commit OID to mark as reachable.