MCPcopy Create free account
hub / github.com/git/git / read_repository_format

Function read_repository_format

setup.c:859–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859int read_repository_format(struct repository_format *format, const char *path)
860{
861 clear_repository_format(format);
862 format->hash_algo = GIT_HASH_SHA1_LEGACY;
863 git_config_from_file(check_repo_format, path, format);
864 if (format->version == -1) {
865 clear_repository_format(format);
866 format->hash_algo = GIT_HASH_SHA1_LEGACY;
867 }
868 return format->version;
869}
870
871void clear_repository_format(struct repository_format *format)
872{

Calls 2

clear_repository_formatFunction · 0.85
git_config_from_fileFunction · 0.85

Tested by

no test coverage detected