diff options
| author | Jeff King <peff@peff.net> | 2023-03-22 13:37:17 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-03-22 15:37:08 -0700 |
| commit | 76e50f7fbccb9db4659f1e7fea55fc4d51144d7c (patch) | |
| tree | be5d5368518d778521419d22199b24fb01ae1120 /builtin/commit-graph.c | |
| parent | The third batch (diff) | |
| download | git-76e50f7fbccb9db4659f1e7fea55fc4d51144d7c.tar.gz git-76e50f7fbccb9db4659f1e7fea55fc4d51144d7c.zip | |
fast-export: drop const when storing anonymized values
We store anonymized values as pointers to "const char *", since they are
conceptually const to callers who use them. But they are actually
allocated strings whose memory is owned by the struct.
The ownership mismatch hasn't been a big deal since we never free() them
(they are held until the program ends), but let's switch them to "char *"
in preparation for changing that.
Since most code only accesses them via anonymize_str(), it can continue
to narrow them to "const char *" in its return value.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions
