Automatically recognize / parse and hyperlink email addresses in commit message body trailers (for co-authors, reviewers, signed-off-by, etc.)
This is a low-priority "nice to have" UX feature request.
As seen in various places out there in the wild (such as this commit for example), there is a standardized practice of adding "trailer" metadata to the end of commit messages, which typically looks like this:
Change-Id: some_big_commit_hash_or_something_else
Co-authored-by: some person's name <their_email_address@example.com>
Reviewed-by: some person's name <their_email_address@example.com>
Reviewed-by: some other person's name <test@example.com>
Tested-by: some person's name <their_email_address@example.com>
Currently, Gitg will show all of those as-is, in plain text.
Ideally, it would be nicer if it hyperlinked the email addresses onto the names instead (with <a href="mailto:the_email_address" title="the_email_addres">The person's name</a>
so that the email address can be seen on hover with the tooltip).
There already is some code to parse regular hyperlinks (with the parse_links_on_subject
and parse_smart_text
methods) in libgitg/gitg-diff-view-commit-details.vala, so someone who is well-versed in the dark art of regex (definitely not me!), or perhaps less dangerous techniques, could maybe extend this for *-by: some_name <some_email_address>
to be presented more nicely?