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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,745 views 1 5
Read article

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