diff options
author | Jeff King <peff@peff.net> | 2020-06-23 11:24:51 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-06-23 19:56:26 -0700 |
commit | 750bb32589ea157bfe522a66f814a0124c97c41b (patch) | |
tree | 05001ab56376802368a85c91f6c7718752f5c0d4 /revision.c | |
parent | fast-export: use xmemdupz() for anonymizing oids (diff) | |
download | tgif-750bb32589ea157bfe522a66f814a0124c97c41b.tar.xz |
fast-export: store anonymized oids as hex strings
When fast-export stores anonymized oids, it does so as binary strings.
And while the anonymous mapping storage is binary-clean (at least as of
the previous commit), this will become awkward when we start exposing
more of it to the user. In particular, if we allow a method for
retaining token "foo", then users may want to specify a hex oid as such
a token.
Let's just switch to storing the hex strings. The difference in memory
usage is negligible (especially considering how infrequently we'd
generally store an oid compared to, say, path components).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
0 files changed, 0 insertions, 0 deletions