summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-03-16 06:25:25 -0400
committerJunio C Hamano <gitster@pobox.com>2013-03-16 22:16:45 -0700
commita6eec1263883ce9787a354e1635b7b732e72c3c9 (patch)
tree9f59547733de1d18bc41d04e09ecdb98a942c47f /git-send-email.perl
parent435c83323713066723e4194cd89c31bbec7011a2 (diff)
downloadgit-a6eec1263883ce9787a354e1635b7b732e72c3c9.tar.gz
upload-pack: drop lookup-before-parse optimization
When we receive a "have" line from the client, we want to load the object pointed to by the sha1. However, we are careful to do: o = lookup_object(sha1); if (!o || !o->parsed) o = parse_object(sha1); to avoid loading the object from disk if we have already seen it. However, since ccdc603 (parse_object: try internal cache before reading object db), parse_object already does this optimization internally. We can just call parse_object directly. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
0 files changed, 0 insertions, 0 deletions