read-tree -m A B: prime cache-tree from the switched-to tree
commit456156dc068b7664c08e35157e17a6440ec68f32
authorJunio C Hamano <gitster@pobox.com>
Mon, 20 Apr 2009 10:58:19 +0000 (20 03:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Apr 2009 11:16:41 +0000 (20 04:16 -0700)
tree23ecc7cf69a6e9143b278152505ab62ca21e976d
parentb9d37a5420446d0db2dc0dc5458a5e50656a4852
read-tree -m A B: prime cache-tree from the switched-to tree

When switching to a new branch with "read-tree -m A B", the resulting
index must match tree B and we can prime the cache tree with it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-read-tree.c