gunk-dev/the-valley

rebase.txt

sourcecaaa5bee5e11main's published tip history
3.0 KiB
1usage: valley rebase [--known-signers <file>] [--integrator-name <name>] <change>
2
3 rebase [--known-signers <file>] [--integrator-name <name>] <change>
4 rebase the change's whole stack onto origin/main, as
5 review's [b]ase onto main does: the layers pending
6 lists under the change, and the change itself. in a
7 throwaway worktree, bottom first, each layer's own commits
8 go onto the rebased layer below it, and the bottom's onto
9 origin/main, so each layer keeps its own diff. commits
10 under the bottom that a lower change landed through the
11 integrator drop out, since main holds them; that landing
12 is read as changes reads it, with the signers its two
13 flags, VALLEY_KNOWN_SIGNERS and VALLEY_INTEGRATOR_SIGNER,
14 or the host's publication give. one atomic
15 push then moves every layer's branch, each leased on the
16 tip read: every branch moves, or none does. last, bottom
17 first, each change gains its rebased head as a new
18 version, as valley.principal names, the way ready
19 --if-active does: only while the change is still ready
20 at the head the rebase began with.
21 it refuses, with nothing changed, a stack holding a
22 change that is not ready, records no branch, or whose
23 branch is missing on origin or is not at its recorded
24 head; a plain branch that is the branch of a change not
25 in the stack; two layers on one branch; a merge among the
26 commits to be rebased, or a version head of a change
27 that is not ready or not in the stack, since a rebase
28 gives each commit a new id; and a stack holding a change
29 while git config valley.principal names no one. a
30 conflict in any layer pushes nothing, records nothing
31 and names the layer.
32 a change alone prints its new head. a
33 stack prints a manifest: one line for each layer, with
34 its old and new head, whether its branch was pushed, and
35 whether a version was added. then, for each change left
36 unfinished, the valley ready command that finishes it,
37 and the exit status is non-zero. rebasing again refuses
38 a change whose branch holds a head no version records,
39 and prints the same command. last, it names each ready
40 change or branch outside the stack that is left on an
41 old head of a layer, such as a second stack on a lower
42 layer, with the rebase that moves it; it does not move
43 it. rebase does not re-review the result. a stack that
44 already fast-forwards from main is left as it is.