The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Gonchik Tsymzhitov
Community Champion
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?

TAGS
AUG Leaders

Atlassian Community Events