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

Function find_end_of_record

refs/packed-backend.c:467–472  ·  view source on GitHub ↗

* Return a pointer to the start of the record following the record * that contains `*p`. If none is found before `end`, return `end`. */

Source from the content-addressed store, hash-verified

465 * that contains `*p`. If none is found before `end`, return `end`.
466 */
467static const char *find_end_of_record(const char *p, const char *end)
468{
469 while (++p < end && (p[-1] != '\n' || p[0] == '^'))
470 ;
471 return p;
472}
473
474/*
475 * We want to be able to compare mmapped reference records quickly,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected