summaryrefslogtreecommitdiff
path: root/t/t4137-apply-submodule.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-04-20 15:54:03 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-04-20 13:09:38 -0700
commitb5f52f372e85c6e461b6123cd7eebd544b439020 (patch)
tree06946185a39503c07a466cfceed3edfa709dd09f /t/t4137-apply-submodule.sh
parentreachable: only mark local objects as recent (diff)
downloadtgif-b5f52f372e85c6e461b6123cd7eebd544b439020.tar.xz
sha1_file: freshen pack objects before loose
When writing out an object file, we first check whether it already exists and if so optimize out the write. Prior to 33d4221, we did this by calling has_sha1_file(), which will check for packed objects followed by loose. Since that commit, we check loose objects first. For the common case of a repository whose objects are mostly packed, this means we will make a lot of extra access() system calls checking for loose objects. We should follow the same packed-then-loose order that all of our other lookups use. Reported-by: Stefan Saasen <ssaasen@atlassian.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4137-apply-submodule.sh')
0 files changed, 0 insertions, 0 deletions