pub fn mark_commit_reachable(repo: &Repo, commit_oid: NonZeroOid) -> Result<()>
Expand description

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.