Hi ,
is it possible to have the branch sizes of a repository with api?
Thanks
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)
Ok Thanks @Ben
It looks like you're new here. Sign in or register to get started.