diff options
author | René Scharfe <l.s.r@web.de> | 2017-02-07 23:04:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-08 13:38:41 -0800 |
commit | bec5ab8997c2391fa2241520f52f301397ebd538 (patch) | |
tree | 2c1f914fd26d48deaaf5be42bd5fea5bb1ee96aa /t/t4201-shortlog.sh | |
parent | Git 2.12-rc0 (diff) | |
download | tgif-bec5ab8997c2391fa2241520f52f301397ebd538.tar.xz |
dir: avoid allocation in fill_directory()
Pass the match member of the first pathspec item directly to
read_directory() instead of using common_prefix() to duplicate it first,
thus avoiding memory duplication, strlen(3) and free(3).
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4201-shortlog.sh')
0 files changed, 0 insertions, 0 deletions