git/builtin
Jeff King 76e50f7fbc 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>
2023-03-22 15:37:08 -07:00
..
2023-03-17 14:03:10 -07:00
2020-07-30 19:18:06 -07:00
2022-04-06 09:42:14 -07:00
2023-02-22 14:55:45 -08:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:10 -07:00
2021-10-28 09:57:09 -07:00
2022-12-14 15:55:46 +09:00
2023-03-17 14:03:09 -07:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:09 -07:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:10 -07:00