summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2017-02-07 23:04:25 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-08 13:38:41 -0800
commitbec5ab8997c2391fa2241520f52f301397ebd538 (patch)
tree2c1f914fd26d48deaaf5be42bd5fea5bb1ee96aa /builtin/commit.c
parent6e3a7b3398559305c7a239a42e447c21a8f39ff8 (diff)
downloadgit-bec5ab8997c2391fa2241520f52f301397ebd538.tar.gz
dir: avoid allocation in fill_directory()rs/fill-directory-optim
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions