From 7a6cab0b70e08ff0998c612efb8d6d51a2c1c54d Mon Sep 17 00:00:00 2001 From: Alain Zscheile Date: Thu, 20 Oct 2022 23:48:29 +0200 Subject: [PATCH] patch states: +frozen --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b902dec..04040b3 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,35 @@ ### patch states -* applied: contained in main +* applied: contained in main, frozen * unreviewed: not in main, active * rejected/abandoned: not in main, inactive * submitted is equal to {unreviewed or abandoned} * unsubmitted +Patches can be frozen (when they are a linked to a single snapshot), +or be not-frozen (when they are linked to a command which gets automatically rebased) + +```rust +enum PatchAct { + Frozen(Snapshot), + Dynamic(Command), +} + +enum PatchInject { + InStable, + InMain, + Unreviewed, + Abandoned, + Unsubmitted, +} + +struct PatchState { + inj: PatchInject, + act: PatchAct, +} +``` + ### CLI user interface reviewed changes all have two identifiers: their publishing (-> "unreviewed") revision (`pub#[0-9]+`)