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