Thread (8 messages) flat view 8 messages, 3 authors, 2020-08-17

Re: [PATCH] fast-export: factor out print_oid()

From: Jeff King <hidden>
Date: 2020-08-13 17:25:52

On Thu, Aug 13, 2020 at 07:17:20PM +0200, René Scharfe wrote:
-- >8 --
Subject: [PATCH v2] fast-export: deduplicate anonymization handling

Move the code for converting an object_id to a hexadecimal string and
for handling of the default (not anonymizing) case from its callers to
anonymize_oid() and consequently rename it to anonymize_oid_if_needed().
This reduces code duplication.
I think this is a bad direction unless you're going to do it for all of
the other anonymize_*() functions, as well, for consistency. And there
it gets tricky because the caller is able to use the anonymizing
knowledge in more places.

I actually liked your original version better.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help