Rules for generating branch list on commit view page

Stash 2.8 introduced a new feature that lists the branches that contain a given commit. From what pool of branch names does stash select a branch to display? All I see is "master".

Also, in the branch listing page, is it capable only of showing ahead/behind counts for the "default branch" (e.g. "master"), or can it select from a more pertinent "release branch"?

1 answer

Hi Karl,

Stash will only show the default branch (master) if that commit is somewhere 'on' master. The reason being otherwise what branches would we show? Over time a commit will eventually end up on every branch created off master, and it would be unwieldy to list them all. If you have a commit that is not yet on master it will show the remaining branch(es) that it is on.

Regarding the branch listing page - currently it's only going to show ahead/behind counts for master, but we have certainly considered comparing to other branches. While I can't make any promises, I believe we might be extending the branch listing features in the next release.

Cheers,

Charles

In the screenshot from the 2.8 release notes, two branches are listed. I'm just wondering about the details of the algorithm that is used to select which branches to display in that list.

We have some long-term release branches that will never be merged back into master. It would be nice to display which of those long-term release branches a given commit is a member of.

Hi Karl,

Yep. So if you go to a commit that is not on master and is one (or more) of those release branches it will list them all.

Basically we show either a) master or b) everything else

Charles

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...

22,449 views 26 12
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