Get branch sizes of a repository

mcolussi
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!
April 25, 2024

Hi ,

is it possible to have the branch sizes of a repository with api?

Thanks

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 28, 2024

G'day!

Unfortunately, there is no branch size statistics available in our API. You can use git commands to gather this information, however:

Number of commits across all branches:

git rev-list --all | wc -l

Number of commits for a particular branch:

git rev-list INSERTBRANCHHERE | wc -l

Hope this helps, please let me know if I've misunderstood your query.

Cheers!

- Ben (Bitbucket Cloud Support)

 

mcolussi
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!
May 4, 2024

Ok Thanks @Ben 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events