github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/kbfs/kbfsmd/merge_status.go (about) 1 // Copyright 2017 Keybase Inc. All rights reserved. 2 // Use of this source code is governed by a BSD 3 // license that can be found in the LICENSE file. 4 5 package kbfsmd 6 7 // MergeStatus represents the merge status of a TLF. 8 type MergeStatus int 9 10 const ( 11 // Merged means that the TLF is merged and no conflict 12 // resolution needs to be done. 13 Merged MergeStatus = iota 14 // Unmerged means that the TLF is unmerged and conflict 15 // resolution needs to be done. Metadata blocks which 16 // represent unmerged history should have a non-null 17 // branch ID defined. 18 Unmerged 19 ) 20 21 func (m MergeStatus) String() string { 22 switch m { 23 case Merged: 24 return "merged" 25 case Unmerged: 26 return "unmerged" 27 default: 28 return "unknown" 29 } 30 }