unpack-trees: preserve the index file version of original
authorJunio C Hamano <gitster@pobox.com>
Fri, 27 Apr 2012 22:58:13 +0000 (15:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Apr 2012 23:03:29 +0000 (16:03 -0700)
commit9170c7ab2889a295de49458d7bd37d82f1556cd6
treea0447f3b6ca58a5090cfa65285925043b88a6608
parent69dec66b2f6ab5c8138cca37e74bd405c541318a
unpack-trees: preserve the index file version of original

Otherwise "git checkout $other_branch" (or even "git checkout HEAD")
would end up writing the index out in the default format.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c