MCPcopy Index your code
hub / github.com/git/git / oid_version

Function oid_version

chunk-format.c:205–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205uint8_t oid_version(const struct git_hash_algo *algop)
206{
207 switch (hash_algo_by_ptr(algop)) {
208 case GIT_HASH_SHA1:
209 return 1;
210 case GIT_HASH_SHA256:
211 return 2;
212 default:
213 die(_("invalid hash version"));
214 }
215}

Callers 6

parse_commit_graphFunction · 0.85
write_commit_graph_fileFunction · 0.85
write_midx_headerFunction · 0.85
write_rev_headerFunction · 0.85
write_mtimes_headerFunction · 0.85

Calls 2

hash_algo_by_ptrFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected