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

Determining commit authorship only by e-mail #4029

Open
r4d1sh opened this issue Feb 7, 2025 · 0 comments
Open

Determining commit authorship only by e-mail #4029

r4d1sh opened this issue Feb 7, 2025 · 0 comments
Labels
triage Needs to be looked at

Comments

@r4d1sh
Copy link

r4d1sh commented Feb 7, 2025

Current behavior: If I make a commit and then change my name (git config --global user.name "New Name"), GitLens will stop recognizing this commit as my own. (It will display the author instead of using the word 'You').

Proposed behavior: People often change their name in git for various reasons, but the e-mail usually remains the same. It would be better to consider only the e-mail. For example, if there are two commits with different author names but the same e-mail, we can assume that the author is the same person.

How to implement: It may be sufficient to pass null instead of name to isUserMatch function in all relevant places where it is called.

@r4d1sh r4d1sh added feature triage Needs to be looked at labels Feb 7, 2025
@d13 d13 removed the feature label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs to be looked at
Projects
None yet
Development

No branches or pull requests

2 participants