livery.workshop._stack¶
livery.workshop._stack ¶
The stack a branch was started on, recorded in the checkout's git config.
fm start --from records a branch's parent and the parent's tip at
the start as branch.<name>.workshop-parent and
branch.<name>.workshop-parent-tip; a sync, a submit and the
issue verbs read them back here. A branch standing on main has
neither key.
Functions:
| Name | Description |
|---|---|
stack |
The parent branch was started on, and the commit it started from. |
record_stack |
Record branch as stacked on parent, its own commits after tip. |
forget_stack |
Drop the stack record: branch stands on main now. |
stack ¶
The parent branch was started on, and the commit it started from.
Both are empty for a branch started on main; the commit is empty for a branch started before it was recorded. One process for both keys: a flow reads the stack several times.
Source code in packages/workshop/src/livery/workshop/_stack.py
record_stack ¶
Record branch as stacked on parent, its own commits after tip.
Source code in packages/workshop/src/livery/workshop/_stack.py
forget_stack ¶
Drop the stack record: branch stands on main now.