Merge branch 'xl/upgrade-repo-format'
authorJunio C Hamano <gitster@pobox.com>
Mon, 29 Jun 2020 21:17:24 +0000 (14:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jun 2020 21:17:24 +0000 (14:17 -0700)
commit1033b982914206285fb7ee772cd29f7c60c4f929
treedfae7465da8c987e8085ff6daccee6312505cc15
parentf402ea68166bd77f09b176c96005ac7f8886e14b
parent14c7fa269e42df4133edd9ae7763b678ed6594cd
Merge branch 'xl/upgrade-repo-format'

Allow runtime upgrade of the repository format version, which needs
to be done carefully.

There is a rather unpleasant backward compatibility worry with the
last step of this series, but it is the right thing to do in the
longer term.

* xl/upgrade-repo-format:
  check_repository_format_gently(): refuse extensions for old repositories
  sparse-checkout: upgrade repository to version 1 when enabling extension
  fetch: allow adding a filter after initial clone
  repository: add a helper function to perform repository format upgrade
builtin/fetch.c
builtin/sparse-checkout.c
t/t5702-protocol-v2.sh