MCPcopy Index your code
hub / github.com/git-bug/git-bug / Id

Method Id

entity/dag/operation.go:41–41  ·  view source on GitHub ↗

Id return the Operation identifier Some care need to be taken to define a correct Id derivation and enough entropy in the data used to avoid collisions. Notably: - the Id of the first Operation will be used as the Id of the Entity. Collision need to be avoided across entities of the same type (exam

()

Source from the content-addressed store, hash-verified

39 //
40 // A common way to derive an Id will be to use the entity.DeriveId() function on the serialized operation data.
41 Id() entity.Id
42 // Type return the type of the operation
43 Type() OperationType
44 // Validate check if the Operation data is valid

Callers 15

ApplyMethod · 0.65
TestSetMetadataFunction · 0.65
TestOperationPackFilesFunction · 0.65
HasAdministratorMethod · 0.65
operationUnmarshalerFunction · 0.65
Example_entityFunction · 0.65
ValidateMethod · 0.65
unmarshallPackFunction · 0.65
TestWriteReadFunction · 0.65

Calls

no outgoing calls

Tested by 13

TestSetMetadataFunction · 0.52
TestOperationPackFilesFunction · 0.52
HasAdministratorMethod · 0.52
operationUnmarshalerFunction · 0.52
Example_entityFunction · 0.52
TestWriteReadFunction · 0.52
assertMergeResultsFunction · 0.52
TestMergeFunction · 0.52
TestRemoveFunction · 0.52