MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / is_valid_commit

Function is_valid_commit

common/hf-cache.cpp:158–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static bool is_valid_commit(const std::string & hash) {
159 return is_hex_string(hash, 40);
160}
161
162static bool is_valid_oid(const std::string & oid) {
163 return is_hex_string(oid, 40) || is_hex_string(oid, 64);

Callers 2

get_repo_commitFunction · 0.85
get_cached_refFunction · 0.85

Calls 1

is_hex_stringFunction · 0.85

Tested by

no test coverage detected