David Ostrovsky | eb245f2 | 2021-04-19 14:07:53 +0200 | [diff] [blame] | 1 | = gerrit convert-ref-storage |
| 2 | |
| 3 | == NAME |
| 4 | gerrit convert-ref-storage - Convert ref storage to reftable (experimental). |
| 5 | |
| 6 | A reftable file is a portable binary file format customized for reference storage. |
| 7 | References are sorted, enabling linear scans, binary search lookup, and range scans. |
| 8 | |
| 9 | See also link:https://www.git-scm.com/docs/reftable for more details[reftable,role=external,window=_blank] |
| 10 | |
| 11 | == SYNOPSIS |
| 12 | [verse] |
| 13 | -- |
| 14 | _ssh_ -p <port> <host> _gerrit convert-ref-storage_ |
| 15 | [--format <format>] |
| 16 | [--backup | -b] |
| 17 | [--reflogs | -r] |
| 18 | [--project <PROJECT> | -p <PROJECT>] |
| 19 | -- |
| 20 | |
| 21 | == DESCRIPTION |
| 22 | Convert ref storage to reftable. |
| 23 | |
| 24 | == ACCESS |
| 25 | Administrators |
| 26 | |
| 27 | == OPTIONS |
| 28 | --project:: |
| 29 | -p:: |
| 30 | Required; Name of the project for which the ref format should be changed. |
| 31 | |
| 32 | --format:: |
| 33 | Format to convert to: `reftable` or `refdir`. |
| 34 | Default: reftable. |
| 35 | |
| 36 | --backup:: |
| 37 | -b:: |
| 38 | Create backup of old ref storage format. |
| 39 | Default: true. |
| 40 | |
| 41 | --reflogs:: |
| 42 | -r:: |
| 43 | Write reflogs to reftable. |
| 44 | Default: true. |
| 45 | |
| 46 | == EXAMPLES |
| 47 | |
| 48 | Convert ref format for project "core" to reftable: |
| 49 | ---- |
| 50 | $ ssh -p 29418 review.example.com gerrit convert-ref-format -p core |
| 51 | ---- |
| 52 | |
| 53 | GERRIT |
| 54 | ------ |
| 55 | Part of link:index.html[Gerrit Code Review] |
| 56 | |
| 57 | SEARCHBOX |
| 58 | --------- |