Opened 12 years ago
Last modified 12 years ago
#11043 new enhancement
Add option to hide a commiter's email address
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | unscheduled |
Component: | plugin/git | Version: | |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
when viewing changesets in timeline or comments in ticket changes besides the name of the author an email address will be displayed. If setting "show_email_address" is false, the email address will be truncated / obfuscated.
Example: Author name <author@…>
I'd like to have a setting to remove email address completely.
Example: Author name
Instead of "Author name <author@…>" or "Author name <author@…>"
I patched it by changing this line http://trac.edgewall.org/browser/trunk/tracopt/versioncontrol/git/git_fs.py#L101
from "user, time, tz_str = s.rsplit(None, 2)" to "user, email, time, tz_str = s.rsplit(None, 3)" and just ignored the email variable.
Guess this is not the best solution since some users want to match the email address with Trac users. Would be great to have a setting for this.
Thanks!
Well, we already remove the e-mail in places where it eats too much space. On a changeset page, it seems fine.