Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What are the commits that are linked in a commit

If I look at a commit in Bamboo (URL ending with "/commits/<commit-hash>"), there seems to always be one or two links to other commits on the right side.  If I click on them it begins a seemingly endless journey down a long line of commits.  What is the significance of the links that appear on a particular commit?

Screen Shot 2021-03-31 at 10.00.04 AM.png

1 answer

1 accepted

0 votes
Answer accepted

Hi @Michael Nieman

Welcome to the Atlassian Community!

The screenshot seemingly stems from Bitbucket Server (I guess you reached the screen by clicking the resp. commit on your Bamboo build result).

This line lists the parent commit(s) of the commit you are looking at (the one in your URL ".../commits/<commit-hash>") - regular commits just have a single parent commit, but in this case you seem to be looking at a merge commit, which has two parents.

You should be able to visualize this hierarchy when you navigate one up to the entire commit history (just the ".../commits" URL), here's an example:

cac-62399-commit-overview.png

As you can see, commit 841b7e6df25 has been merged into another branch, so the resulting merge commit e066465439b now has two parents, namely 841b7e6df25 and the preceding commit 9acdc6a6864 from the target branch. This is exactly what is shown when I navigate to the commit view for e066465439b:

cac-62399-commit-view.png

I hope this helps, Cheers,
Steffen

That makes perfect sense. Thank you for the detailed & timely response!

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

184 views 2 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you