@@ -555,7 +555,6 @@ static char *anonymize_commit_message(const char *old)
return xstrfmt("subject %d\n\nbody\n", counter++);
}
-static struct hashmap idents;
static char *anonymize_ident(const char *old, size_t len)
{
static int counter;
@@ -572,6 +571,7 @@ static char *anonymize_ident(const char *old, size_t len)
*/
static void anonymize_ident_line(const char **beg, const char **end)
{
+ static struct hashmap idents;
static struct strbuf buffers[] = { STRBUF_INIT, STRBUF_INIT };
static unsigned which_buffer;
All of the other anonymization functions keep their static mappings inside the function to avoid polluting the global namespace. Let's do the same for "idents", as nobody needs it outside of anonymize_ident_line(). Signed-off-by: Jeff King <peff@peff.net> --- builtin/fast-export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)