mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
Merge branch 'aw/maint-shortlog-blank-lines'
* aw/maint-shortlog-blank-lines: shortlog: take the first populated line of the description
This commit is contained in:
commit
5c9afcff1a
|
@ -70,11 +70,12 @@ static void insert_one_record(struct shortlog *log,
|
|||
else
|
||||
free(buffer);
|
||||
|
||||
/* Skip any leading whitespace, including any blank lines. */
|
||||
while (*oneline && isspace(*oneline))
|
||||
oneline++;
|
||||
eol = strchr(oneline, '\n');
|
||||
if (!eol)
|
||||
eol = oneline + strlen(oneline);
|
||||
while (*oneline && isspace(*oneline) && *oneline != '\n')
|
||||
oneline++;
|
||||
if (!prefixcmp(oneline, "[PATCH")) {
|
||||
char *eob = strchr(oneline, ']');
|
||||
if (eob && (!eol || eob < eol))
|
||||
|
|
Loading…
Reference in a new issue