I use git, and have entries in mailmap that remaps the various email-addresses people use to the "canonical" name and email for that user. However, I also have some historical commits in which there's no email at all, but merely a username, such as "tommy".
I want to remap these too, to the canonical name and email for that user, but have been unable to do so. I've tried both:
Canonical_name tommy
Canonical <canonical@email> tommy <>
Canonical tommy <>
but none of these seem to have any effect at all.
Edit to clarify: I don't have any wish of changing the history. I just want the canonical names displayed when prettyprinting with %aN which remaps names using mailmap. This works -perfect- for the case where 3 different email-adresses are supposed to map to one canonical name. But not at all for the case where the original comitter didn't supply an email-address at all.