summaryrefslogtreecommitdiff
path: root/t/t1512-rev-parse-disambiguation.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2017-02-07 23:04:25 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-02-08 13:38:41 -0800
commitbec5ab8997c2391fa2241520f52f301397ebd538 (patch)
tree2c1f914fd26d48deaaf5be42bd5fea5bb1ee96aa /t/t1512-rev-parse-disambiguation.sh
parentGit 2.12-rc0 (diff)
downloadtgif-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/t1512-rev-parse-disambiguation.sh')
0 files changed, 0 insertions, 0 deletions