| 1 | usage: valley ready [--head <sha>] [--change <id>] [--if-active <sha>] [--stamp] [<branch>] |
| 2 | |
| 3 | ready [--head <sha>] [--change <id>] [--if-active <sha>] [--stamp] [<branch>] |
| 4 | mark a head of the branch ready, as a new version of its |
| 5 | change, in the change's record on origin: |
| 6 | refs/the-valley/changes/main/<change id>. the branch |
| 7 | defaults to the current one. the head is --head, or else |
| 8 | origin/<branch>, and it must be on origin already. the |
| 9 | first ready of a change makes v1; each later one adds |
| 10 | the next version, at a head other than the active |
| 11 | version's. a draft or a withdrawn change comes back this |
| 12 | way: at the active version's head, it is ready again at |
| 13 | that version, and at another head it gains the next |
| 14 | version. prints the handle and version, e.g. |
| 15 | `app nxvp v2 ready`. |
| 16 | the change id is --change, else the head commit's jj |
| 17 | change-id header, else a Change-Id: trailer in its |
| 18 | message, else a new one, which is printed. a header and |
| 19 | a trailer that disagree are refused. so is a change |
| 20 | whose commits from its merge base with origin/main hold |
| 21 | a merge, or that has more than one merge base. |
| 22 | --if-active SHA |
| 23 | add the version only while the change |
| 24 | is ready at an active version whose head |
| 25 | is SHA. the record ref is leased on the |
| 26 | record read, so nothing comes between |
| 27 | that check and the write. rebase readies |
| 28 | the head it rebased this way. |
| 29 | --stamp amend the head of your local branch to |
| 30 | carry the id as a Change-Id: trailer and |
| 31 | push the branch, leased, before marking it |
| 32 | ready. it only starts a new change: it |
| 33 | is refused for a change that has a |
| 34 | record on origin already, and for a head |
| 35 | already on origin. |
| 36 | the record names the principal your key pushes as, read |
| 37 | from git config valley.principal; the host refuses one |
| 38 | naming anyone else. the record ref is pushed leased on |
| 39 | the value read. a new change is owned by the principal |
| 40 | that readies it, and a later version may come from its |
| 41 | owner, the operator, or a restack holder while the |
| 42 | change is ready. |
| 43 | a record never makes anything land, and approve is |
| 44 | still the only way to main. the integrator reads |
| 45 | records only to refuse: it lands no request that would |
| 46 | bring a version of a change that is not ready. |