MCPcopy Create free account
hub / github.com/git/git / reftable_ref_record_val1

Function reftable_ref_record_val1

reftable/record.c:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81const unsigned char *reftable_ref_record_val1(const struct reftable_ref_record *rec)
82{
83 switch (rec->value_type) {
84 case REFTABLE_REF_VAL1:
85 return rec->value.val1;
86 case REFTABLE_REF_VAL2:
87 return rec->value.val2.value;
88 default:
89 return NULL;
90 }
91}
92
93const unsigned char *reftable_ref_record_val2(const struct reftable_ref_record *rec)
94{

Callers 3

reftable_writer_add_refFunction · 0.85
reftable_be_fsckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected