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

Function match_hash

packfile.c:2384–2397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2382}
2383
2384static int match_hash(unsigned len, const unsigned char *a, const unsigned char *b)
2385{
2386 do {
2387 if (*a != *b)
2388 return 0;
2389 a++;
2390 b++;
2391 len -= 2;
2392 } while (len > 1);
2393 if (len)
2394 if ((*a ^ *b) & 0xf0)
2395 return 0;
2396 return 1;
2397}
2398
2399static int for_each_prefixed_object_in_midx(
2400 struct packfile_store *store,

Calls

no outgoing calls

Tested by

no test coverage detected