1
0
mirror of https://github.com/git/git.git synced 2025-04-12 18:23:03 +00:00
git/builtin
Jeff King b794ebeac9 diff-tree: avoid lookup_unknown_object
We generally want to avoid lookup_unknown_object, because it
results in allocating more memory for the object than may be
strictly necessary.

In this case, it is used to check whether we have an
already-parsed object before calling parse_object, to save
us from reading the object from disk. Using lookup_object
would be fine for that purpose, but we can take it a step
further. Since this code was written, parse_object already
learned the "check lookup_object" optimization, so we can
simply call parse_object directly.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-07-28 10:14:34 -07:00
..
2014-07-16 11:10:11 -07:00
2014-03-14 14:25:31 -07:00
2014-01-17 12:21:20 -08:00
2014-02-27 14:01:30 -08:00
2014-06-13 12:07:47 -07:00
2014-06-25 11:47:36 -07:00
2014-04-08 12:00:33 -07:00
2014-04-30 10:30:02 -07:00
2014-01-17 12:21:20 -08:00