Merge branch 'aw/maint-shortlog-blank-lines' into maint
* aw/maint-shortlog-blank-lines: shortlog: take the first populated line of the description
This commit is contained in:
commit
b50396d16c
@ -74,11 +74,12 @@ static void insert_one_record(struct path_list *list,
|
|||||||
else
|
else
|
||||||
free(buffer);
|
free(buffer);
|
||||||
|
|
||||||
|
/* Skip any leading whitespace, including any blank lines. */
|
||||||
|
while (*oneline && isspace(*oneline))
|
||||||
|
oneline++;
|
||||||
eol = strchr(oneline, '\n');
|
eol = strchr(oneline, '\n');
|
||||||
if (!eol)
|
if (!eol)
|
||||||
eol = oneline + strlen(oneline);
|
eol = oneline + strlen(oneline);
|
||||||
while (*oneline && isspace(*oneline) && *oneline != '\n')
|
|
||||||
oneline++;
|
|
||||||
if (!prefixcmp(oneline, "[PATCH")) {
|
if (!prefixcmp(oneline, "[PATCH")) {
|
||||||
char *eob = strchr(oneline, ']');
|
char *eob = strchr(oneline, ']');
|
||||||
if (eob && (!eol || eob < eol))
|
if (eob && (!eol || eob < eol))
|
||||||
|
Loading…
Reference in New Issue
Block a user