Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Get all commits for a selected branch

vermijw
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 23, 2018

I'm looking for a way to get all commits for a branch via the stash rest api. This is close to what is asked by 381793, however, I'm looking to get the full list, without comparison to another branch. is this possible? 

I actually only need the hash & message, similar to the `git log --pretty=oneline` command. Though, I'm fine picking those off the response.

 

 

1 answer

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2018

Hi! 

You can use it from this method 

https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/bitbucket.py#L226

 

Cheers,

Gonchik Tsymzhitov

kesavamoorthy December 9, 2018

Hi 

I am trying to get the list of commits between two commit id's by using this function https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/bitbucket.py#L285

But the number of commits are getting displayed as per limit, but the expectation is it should display the commits upto {hash_to} right? any clue?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events