git-2.22.0/refs/packed-backend.c
/*
 * 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`.
 */
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`.
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 ` .
static const char *find_start_of_record(const char *buf, const char *p)
{
	while (p > buf && (p[-1] != '\n' || p[0] == '^'))
		p--;
	return p;
}
static const char * find_start_of_record ( const char * buf , const char * p ) { while ( p > buf && ( p [ -1 ] != ' \n ' || p [ 0 ] == ' ' ) ) p -- ; return p ; }
Return a pointer to the start of the record that contains the
 character `*p` (which must be within the buffer).
Return a pointer to the start of the record that contains the character ` * p ` ( which must be within the buffer ) .