Hi ,
is it possible to have the branch sizes of a repository with api?
Thanks
Community moderators have prevented the ability to post new answers.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.