github.com/dolthub/dolt/go@v0.40.5-0.20240520175717-68db7794bea6/serial/workingset.fbs (about) 1 // Copyright 2022 Dolthub, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 table WorkingSet { 16 // 20-byte hashes of root values. 17 working_root_addr:[ubyte] (required); 18 staged_root_addr:[ubyte]; 19 20 // Meta 21 name:string (required); 22 email:string (required); 23 desc:string (required); 24 timestamp_millis:uint64; 25 26 merge_state:MergeState; 27 rebase_state:RebaseState; 28 } 29 30 table MergeState { 31 // An address for the working root value before the merge started. 32 pre_working_root_addr:[ubyte] (required); 33 34 // The commit that we are merging. 35 from_commit_addr:[ubyte] (required); 36 37 // The spec that was used to identify the commit that we are merging. Optional 38 // for backwards compatibility. 39 from_commit_spec_str:string; 40 41 unmergable_tables:[string]; 42 43 is_cherry_pick:bool; 44 } 45 46 table RebaseState { 47 // The address of the working root value before the rebase started. 48 pre_working_root_addr:[ubyte] (required); 49 50 // The branch being rebased. 51 branch:[ubyte] (required); 52 53 // The commit that we are rebasing onto. 54 onto_commit_addr:[ubyte] (required); 55 } 56 57 // KEEP THIS IN SYNC WITH fileidentifiers.go 58 file_identifier "WRST"; 59 60 root_type WorkingSet;