summaryrefslogtreecommitdiff
path: root/t/t4100/t-apply-1.expect
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-06-23 11:25:03 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-06-23 19:56:26 -0700
commitd5bf91fde4430532eb725425c3ef9827048af6b5 (patch)
tree4e316197825a20140e15086073eb90152db6f195 /t/t4100/t-apply-1.expect
parentfast-export: move global "idents" anonymize hashmap into function (diff)
downloadtgif-d5bf91fde4430532eb725425c3ef9827048af6b5.tar.xz
fast-export: add a "data" callback parameter to anonymize_str()
The anonymize_str() function takes a generator callback, but there's no way to pass extra context to it. Let's add the usual "void *data" parameter to the generator interface and pass it along. This is mildly annoying for existing callers, all of which pass NULL, but is necessary to avoid extra globals in some cases we'll add in a subsequent patch. While we're touching each of these callbacks, we can further observe that none of them use the existing orig/len parameters at all. This makes sense, since the point is for their output to have no discernable basis in the original (my original version had some notion that we might use a one-way function to obfuscate the names, but it was never implemented). So let's drop those extra parameters. If a caller really wants to do something with them, it can pass a struct through the new data parameter. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4100/t-apply-1.expect')
0 files changed, 0 insertions, 0 deletions