summaryrefslogtreecommitdiff
path: root/builtin/rev-list.c
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2014-02-12 14:27:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-02-24 22:32:41 (GMT)
commit352bbbd9f24b39ae863ceb78170a2685d40e6416 (patch)
treedbc461fc747fdd39acace7d8a289c87e86167ff3 /builtin/rev-list.c
parent62cf3ca95a7b34dcbf22d9ba4b2ea56f9fb739c9 (diff)
downloadgit-352bbbd9f24b39ae863ceb78170a2685d40e6416.zip
git-352bbbd9f24b39ae863ceb78170a2685d40e6416.tar.gz
git-352bbbd9f24b39ae863ceb78170a2685d40e6416.tar.bz2
blame.c: prepare_lines should not call xrealloc for every line
Making a single preparation run for counting the lines will avoid memory fragmentation. Also, fix the allocated memory size which was wrong when sizeof(int *) != sizeof(int), and would have been too small for sizeof(int *) < sizeof(int), admittedly unlikely. Signed-off-by: David Kastrup <dak@gnu.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-list.c')
0 files changed, 0 insertions, 0 deletions