cache-tree.c: remove the_repository references
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 10 Nov 2018 05:49:02 +0000 (06:49 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Nov 2018 05:50:06 +0000 (14:50 +0900)
commitc207e9e1f6dd1802f0deadae51af5615d855edc4
tree4142d6b30b54e65a692a3240341400b09437e40f
parent74ae4b638d0acf6ab155422152d7ad98fdbe6f6b
cache-tree.c: remove the_repository references

This case is more interesting than other boring "remove the_repo"
commits because while we need access to the object database, we cannot
simply use r->index because unpack-trees.c can operate on a temporary
index, not $GIT_DIR/index. Ideally we should be able to pass an object
database to lookup_tree() but that ship has sailed.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/read-tree.c
builtin/rebase.c
builtin/reset.c
cache-tree.c
cache-tree.h
read-cache.c
sequencer.c
unpack-trees.c