Displaying full name rather than logname in commit messages.

Are there any plugins available today that will display a user's full name rather than their logname in the commit information within Stash?

Our company uses very UNfriendly lognames so we'd like to see "John Smith committed 3fa9176 16 May 2013" rather than "j1234567 committed 3fa9176 16 May 2013" where "John Smith" is the name associated with the user "j1234567".

4 answers

1 accepted

Hi Mike,

In that case I'm afraid you'll have to wait until the following is implemented:

https://jira.atlassian.com/browse/STASH-3235

I recommend watching and voting on the issue.

Cheers,

Charles

Hi Mike,

We have added supported for .mailmap files in the next version of Stash (2.5) which will allow the names on commits to be mapped to something more preferable.

https://jira.atlassian.com/browse/STASH-3084

https://www.kernel.org/pub/software/scm/git/docs/git-shortlog.html

Would that help?

Charles

Thanks for the response Charles, but I don't think this will do the trick for me as it would require constant admin of the mailmap file. What I'm hoping for is something that will simply display the full name vs. logname whether that full name come from an internal Stash user or, in our case, from ActiveDirectory.

Also, just out of curiosity, I'm assuming your users can't update their ~./gitconfig files to have a different name and email address? Do you have a company-wide requirement for the format of those fields? Eventually we will hopefully tie user emails with committer emails, as per my answer below.

Charles,

Updating their .gitconfig files is a possibility I can look into. I'm hoping for something that doesn't require every developer to make a change because, as you could guess, it's pretty safe to say that a number of those people won't do it and we'll still end up with a number of commits w/out the "real" name.

Thanks,

Mike

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

176 views 20 8
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you