Module git_odb::alternate[][src]

Expand description

A file with directories of other git object databases to use when reading objects.

This inherently makes alternates read-only.

An alternate file in <git-dir>/info/alternates can look as follows:

../path/relative/to/repo/.git
/absolute/path/to/repo/.git

"/a/ansi-c-quoted/path/with/tabs\t/.git"

Based on the canonical implementation.

Modules

Enums

Returned by resolve()

Functions

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.