Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: allow use of .mailmap #764

Open
rgommers opened this issue Jun 1, 2018 · 2 comments
Open

feature request: allow use of .mailmap #764

rgommers opened this issue Jun 1, 2018 · 2 comments

Comments

@rgommers
Copy link

@rgommers rgommers commented Jun 1, 2018

A .mailmap file is used to map commit author info where committers use multiple names or email addresses to a single unique name/email. It is usually located in the root of a repo. See e.g. https://stackoverflow.com/questions/13777171/configuring-git-log-to-use-mailmap-by-default

I cannot find any mention of the feature in this repo; GitPyhon seems to ignore the file. It would be quite useful to allow using that file. Maybe replacing the author name and email in raw, or adding a second row-mailmapped column for example.

@Byron
Copy link
Member

@Byron Byron commented Jun 5, 2018

As this library is in maintenance mode, essentially everything has to be contributed. Most of the time, this is only bugfixes.
However, it should be possible to workaround these issues by using git directly, and leverage the git program in these cases.

@rgommers
Copy link
Author

@rgommers rgommers commented Jun 6, 2018

Thanks for the feedback @Byron. The easiest workaround seems to be to read in the .mailmap file separately into a dictionary, and fix the author names with that after extracting them from the 'raw' commit data returned by Repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.