pub fn object_format_for_git_dir(common_git_dir: &Path) -> Result<ObjectFormat>Expand description
The object format of the repository whose common $GIT_DIR is common_git_dir.
Reads common_git_dir/config’s extensions.objectFormat, defaulting to
SHA-1 when the config is absent or unreadable (matching git). common_git_dir
must already be the common git dir; this does no worktree resolution.