trivial branch graph

Hi,

When developers don't pull before their commit and don't rebase, they create trivial branches.

Would it be possible to graph it in such a way that the one who last committed and therefore branched would be in a new branch line/color.

In the example below (Date Ordered), the yellow commit was not responsible for trivial branching, but the blue commit after the purple commits was. So I would expect the yellow commit to be blue and the blue commit yellow.

It would help me to show, why frequent pulling and rebasing works best for us.

It's a minor thing, and I'm a happy_user of SourceTree (1.6.1.0), fixing this would make me happy_user++

EDIT:

I created an improvment, I don't expect it to be fixed, but at least it got a cool issue number
https://jira.atlassian.com/browse/SRCTREEWIN-2000

2 answers

1 accepted

My strategy to prevent these trivial branches is to always use the "rebase" option when I pull. If you are pushing and pulling via a central server, you should consider this. If you are using the distributed model, however, it will probably introduce more problems than it solves.

For some additional perspectives on the pros and cons of this approach, StackOverflow. Most of these say "go for it", and the only objection I've heard personally has been "other developers said it could cause problems sometimes," no additional detail.

I expect this won't be fixed, as it would require making an exception to the way branches are drawn, which is currently "draw the branch with the more recent commit on the left".

Regardless of my prediction, I am 100% confident that there is nothing to be done about this behavior from the user's perspective. You might have some luck filing a feature request. If you do so, please post a link back here as an answer.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

241 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot