Added tags to what-changed

This commit is contained in:
Dave Shanley
2022-09-29 07:46:21 -04:00
parent cd68570278
commit c47cc15cad
7 changed files with 478 additions and 5 deletions

View File

@@ -14,6 +14,14 @@ type ExternalDocChanges struct {
ExtensionChanges *ExtensionChanges
}
func (e *ExternalDocChanges) TotalChanges() int {
c := len(e.Changes)
if e.ExtensionChanges != nil {
c += len(e.ExtensionChanges.Changes)
}
return c
}
func CompareExternalDocs(l, r *lowbase.ExternalDoc) *ExternalDocChanges {
var changes []*Change
changeType := 0