summaryrefslogtreecommitdiff
path: root/contrib/examples/git-svnimport.perl
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 /contrib/examples/git-svnimport.perl
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 'contrib/examples/git-svnimport.perl')
0 files changed, 0 insertions, 0 deletions