-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add support for removing users' names upon request #58
Conversation
It might be better to map them to a single invalid user via the |
I kept them separate so that if there are others in the future, they're not incorrectly merged into a single person. This maintains the positions and numbers more accurately. I'll update this when I get a chance to factor in the mailmap update from you. |
use mailmap::Author; | ||
|
||
lazy_static::lazy_static! { | ||
static ref REMOVED: HashSet<mailmap::Author> = HashSet::from_iter([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: probably add a comment linking to the teams repo PR so this can be found again when someone inevitably asks what this is for in a couple years
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly enough I intended to do this and totally forgot.
…oli-obk Update mailmap rust-lang/team#1071 / rust-lang/thanks#58
…oli-obk Update mailmap rust-lang/team#1071 / rust-lang/thanks#58
…oli-obk Update mailmap rust-lang/team#1071 / rust-lang/thanks#58
Rollup merge of rust-lang#115702 - jonas-schievink:update-mailmap, r=oli-obk Update mailmap rust-lang/team#1071 / rust-lang/thanks#58
Given that updating the mailmap seems to handle this in an identical manner, I am closing this. |
cc rust-lang/team#1071
I did not do anything about this user having four instances, as that's completely up to the
.mailmap
, which is not included in this repository.What this PR does is maintains a list of name-email pairs that have been requested to be removed. If it matches, "[removed]" is output instead of the person's name. Per the user's request, that seems to be sufficient. I'm not sure what else could be done, as the history does exist in git.
Note that this does not remove the entry altogether; it merely removes the name from being displayed.