Browse Source

Merge branch 'aw/maint-shortlog-blank-lines' into maint

* aw/maint-shortlog-blank-lines:
  shortlog: take the first populated line of the description
maint
Junio C Hamano 17 years ago
parent
commit
b50396d16c
  1. 5
      builtin-shortlog.c

5
builtin-shortlog.c

@ -74,11 +74,12 @@ static void insert_one_record(struct path_list *list, @@ -74,11 +74,12 @@ static void insert_one_record(struct path_list *list,
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…
Cancel
Save