Support reftable migration using git refs migrate --dry-run
Following the plan outlined, add changes to Gitaly to enable rollout of reftable without the WAL.
This includes:
- Note the last modified time for the existing
packed-refsfile - Run
git refs migrate --dry-run - Apply all loose refs present in the repository to the reftable dry-run folder
- If
packed-refsisn't modified- Block all writes incoming to the repository
- Commit the reftable dry-run folder and modify the repository config to use reftable
- Unblock the repository
- If
packed-refsis modified, delete the dry-run folder and restart from#1
Edited by Karthik Nayak