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 /contrib/hooks/multimail/doc | |
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 'contrib/hooks/multimail/doc')
0 files changed, 0 insertions, 0 deletions