Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'aw/maint-shortlog-blank-lines' into maint
author
Junio C Hamano
<gitster@pobox.com>
Tue, 11 Mar 2008 07:37:38 +0000
(
00:37
-0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 11 Mar 2008 07:37:38 +0000
(
00:37
-0700)
* aw/maint-shortlog-blank-lines:
shortlog: take the first populated line of the description
builtin-shortlog.c
patch
|
blob
|
history
raw
(from parent 1:
5b10a3c
)
diff --git
a/builtin-shortlog.c
b/builtin-shortlog.c
index fa8bc7d02a2268d99dcc829cb3adbee10c949306..f08095bc91b92ad93560459d060259bd5df52c4a 100644
(file)
--- a/
builtin-shortlog.c
+++ b/
builtin-shortlog.c
@@
-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))