I've imported SVN repos to Bitbucket and need to extract author information from all previous commits.
I'm hoping to avoid making an api call for all the branches then another api call for each branch's commits.
What is the easiest way to accomplish this via REST API 1.0 ?
Hi @jourdanwest
There is no single API call that will give you all commits across all branches. You will have to loop over all branches to retrieve the commits.
However you could try to use a git command to get the information instead. For example the following will give you the commit has, followed by the username and email address:
git log --format="%H %an <%ae>"
Cheers,
Jens
Also I just saw that your question was from 2017 🤦♂️. Not sure why it popped up on top of my feed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.