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

Function find_start_of_record

refs/packed-backend.c:456–461  ·  view source on GitHub ↗

* Return a pointer to the start of the record that contains the * character `*p` (which must be within the buffer). If no other * record start is found, return `buf`. */

Source from the content-addressed store, hash-verified

454 * record start is found, return `buf`.
455 */
456static const char *find_start_of_record(const char *buf, const char *p)
457{
458 while (p > buf && (p[-1] != '\n' || p[0] == '^'))
459 p--;
460 return p;
461}
462
463/*
464 * Return a pointer to the start of the record following the record

Callers 2

verify_buffer_safeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected