aboutsummaryrefslogtreecommitdiffstats
path: root/reftable/reftable-record.h
diff options
context:
space:
mode:
Diffstat (limited to 'reftable/reftable-record.h')
-rw-r--r--reftable/reftable-record.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/reftable/reftable-record.h b/reftable/reftable-record.h
index e657001d42..2a2943cd13 100644
--- a/reftable/reftable-record.h
+++ b/reftable/reftable-record.h
@@ -74,6 +74,7 @@ int reftable_ref_record_equal(const struct reftable_ref_record *a,
/* reftable_log_record holds a reflog entry */
struct reftable_log_record {
char *refname;
+ size_t refname_cap;
uint64_t update_index; /* logical timestamp of a transactional update.
*/
@@ -88,13 +89,14 @@ struct reftable_log_record {
union {
struct {
- uint8_t *new_hash;
- uint8_t *old_hash;
+ unsigned char new_hash[GIT_MAX_RAWSZ];
+ unsigned char old_hash[GIT_MAX_RAWSZ];
char *name;
char *email;
uint64_t time;
int16_t tz_offset;
char *message;
+ size_t message_cap;
} update;
} value;
};