git-2.22.0/trailer.c
/*
 * Return the position of the start of the patch or the length of str if there
 * is no patch in the message.
 */
Return the position of the start of the patch or the length of str if there
is no patch in the message.
Return the position of the start of the patch or the length of str if there is no patch in the message .
static size_t find_patch_start(const char *str)
{
	const char *s;
	for (s = str; *s; s = next_line(s)) {
		const char *v;
		if (skip_prefix(s, "---", &v) && isspace(*v))
			return s - str;
	}
	return s - str;
}
static size_t find_patch_start ( const char * str ) { const char * s ; for ( s = str ; * s ; s = next_line ( s ) ) { const char * v ; if ( skip_prefix ( s , " " , & v ) && isspace ( * v ) ) return s - str ; } return s - str ; }
Return the position of the start of the patch or the length of str if there
 is no patch in the message.
Return the position of the start of the patch or the length of str if there is no patch in the message .