Merge branch 'ds/lazy-load-trees'
commitc89b6e136e421f1e9108b3c5bc050b19b0243844
authorJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:13 +0000 (23 14:38 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 May 2018 05:38:13 +0000 (23 14:38 +0900)
tree8d81e022f855aad5d29853b56b886d3c6b382c45
parent05682ee270199fdfbc11883458b3639b2b1577df
parent279ffad17dcc3b72aa7cb5c73fb7aa8eddeed9da
Merge branch 'ds/lazy-load-trees'

The code has been taught to use the duplicated information stored
in the commit-graph file to learn the tree object name for a commit
to avoid opening and parsing the commit object when it makes sense
to do so.

* ds/lazy-load-trees:
  coccinelle: avoid wrong transformation suggestions from commit.cocci
  commit-graph: lazy-load trees for commits
  treewide: replace maybe_tree with accessor methods
  commit: create get_commit_tree() method
  treewide: rename tree to maybe_tree
21 files changed:
blame.c
builtin/checkout.c
builtin/fast-export.c
builtin/log.c
builtin/reflog.c
commit-graph.c
commit.c
fsck.c
http-push.c
line-log.c
log-tree.c
merge-recursive.c
notes-merge.c
packfile.c
pretty.c
ref-filter.c
revision.c
sequencer.c
sha1-name.c
tree.c
walker.c