mirror of
https://github.com/git/git.git
synced 2024-11-28 04:23:30 +08: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 New Issue
Block a user