MCPcopy Index your code
hub / github.com/jetify-com/devbox / Hash

Method Hash

internal/devconfig/configfile/file.go:88–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86}
87
88func (c *ConfigFile) Hash() (string, error) {
89 if c.ast == nil {
90 return cachehash.JSON(c)
91 }
92 ast := c.ast.root.Clone()
93 ast.Minimize()
94 return cachehash.Bytes(ast.Pack()), nil
95}
96
97func (c *ConfigFile) Equals(other *ConfigFile) bool {
98 hash1, _ := c.Hash()

Callers 1

EqualsMethod · 0.95

Calls 2

JSONFunction · 0.92
BytesFunction · 0.92

Tested by

no test coverage detected