update-index: upgrade/downgrade on-disk index version
authorJunio C Hamano <gitster@pobox.com>
Wed, 4 Apr 2012 16:37:02 +0000 (09:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Apr 2012 16:57:50 +0000 (09:57 -0700)
commit69dec66b2f6ab5c8138cca37e74bd405c541318a
tree9265658425e59789ee9124ff55430f74f8c56fb4
parent9d227781b688707f64ee1703a1156b0c83247c33
update-index: upgrade/downgrade on-disk index version

With the "--index-version <n>" parameter, write the index out in the
specified version.  With this, an index file that is written in newer
format (say v4) can be downgraded to be read by older versions of Git.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-update-index.txt
builtin/update-index.c