Jeff King
2db6b83d18
shortlog: replace hand-parsing of author with pretty-printer
...
When gathering the author and oneline subject for each
commit, we hand-parse the commit headers to find the
"author" line, and then continue past to the blank line at
the end of the header.
We can replace this tricky hand-parsing by simply asking the
pretty-printer for the relevant items. This also decouples
the author and oneline parsing, opening up some new
optimizations in further commits.
One reason to avoid the pretty-printer is that it might be
less efficient than hand-parsing. However, I measured no
slowdown at all running "git shortlog -ns HEAD" on
linux.git.
As a bonus, we also fix a memory leak in the (uncommon) case
that the author field is blank.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-01-19 09:54:14 -08:00
..
2015-11-05 12:18:12 -08:00
2015-11-20 08:02:05 -05:00
2014-07-16 11:10:11 -07:00
2015-10-05 11:08:04 -07:00
2013-12-05 14:13:21 -08:00
2015-12-10 12:36:13 -08:00
2015-11-20 08:02:05 -05:00
2015-05-08 10:52:11 -07:00
2015-10-16 15:27:52 -07:00
2015-10-16 15:27:52 -07:00
2015-10-16 15:27:52 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-05-05 10:31:51 -07:00
2015-11-20 08:02:05 -05:00
2015-10-05 11:08:06 -07:00
2015-11-20 08:02:05 -05:00
2015-01-14 09:32:04 -08:00
2015-11-20 08:02:05 -05:00
2015-12-10 12:36:13 -08:00
2015-09-25 10:18:18 -07:00
2015-08-17 09:14:59 -07:00
2015-11-20 08:02:05 -05:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-09-17 10:02:49 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 06:55:34 -05:00
2015-10-16 15:27:52 -07:00
2015-12-10 12:36:13 -08:00
2015-10-16 15:27:52 -07:00
2015-10-05 11:08:06 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 04:52:01 -05:00
2014-10-13 13:55:27 -07:00
2015-12-15 10:03:40 -08:00
2015-08-20 09:57:38 -07:00
2015-11-20 08:02:05 -05:00
2015-09-25 10:18:18 -07:00
2015-10-21 15:59:34 -07:00
2015-09-25 10:18:18 -07:00
2015-11-20 08:02:05 -05:00
2015-11-03 15:32:41 -08:00
2015-10-05 11:08:05 -07:00
2015-09-25 10:18:18 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-10-16 15:27:52 -07:00
2014-03-03 14:54:45 -08:00
2015-01-14 09:32:04 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-10-16 15:27:52 -07:00
2015-01-14 09:32:04 -08:00
2015-11-03 15:32:25 -08:00
2015-11-20 08:02:05 -05:00
2015-12-22 14:40:47 -08:00
2015-09-25 10:18:18 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-09-25 10:18:18 -07:00
2015-11-20 08:02:05 -05:00
2015-11-03 15:32:25 -08:00
2015-11-20 08:02:05 -05:00
2015-10-05 13:20:08 -07:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-01-14 09:32:04 -08:00
2015-05-20 13:49:10 -07:00
2015-08-19 12:58:58 -07:00
2016-01-19 09:54:14 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:07 -05:00
2015-11-03 15:32:38 -08:00
2015-09-08 15:48:21 -07:00
2015-12-21 12:03:03 -08:00
2015-10-26 15:55:22 -07:00
2015-09-25 10:18:18 -07:00
2015-11-20 08:02:05 -05:00
2015-05-26 13:24:46 -07:00
2015-09-11 09:50:02 -07:00
2015-09-25 10:18:18 -07:00
2015-06-22 14:20:47 -07:00
2015-01-14 09:32:04 -08:00
2015-06-22 14:20:47 -07:00
2015-11-20 08:02:05 -05:00