Function git_odb::alternate::resolve [−][src]
pub fn resolve(
objects_directory: impl Into<PathBuf>
) -> Result<Vec<PathBuf>, Error>
Given an objects directory, try to resolve alternate object directories possibly located in the
./info/alternates
file.
If no alternate object database was resolved, the resulting Vec
is empty (it is not an error
if there are no alternates).
It is an error once a repository is seen again as it would lead to a cycle.