libgit2 / rugged

ruby bindings to libgit2
MIT License
2.25k stars 277 forks source link

Support for .mailmap when reading authors? #937

Open ioquatix opened 2 years ago

ioquatix commented 2 years ago

It can be useful to respect people's chosen names without rewriting history.

Can we support the .mailmap file so that the authors names are updated?

Thanks

carlosmn commented 2 years ago

There is mailmap support in the library so we if we don't have it here it can be added, but we likely can't add it to the regular walk or objects. A higher-level construct that wraps objects or extra accessor might be more doable.

ioquatix commented 2 years ago

That seems reasonable but it would be great to add author[:mapped_name] or something like that.