Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Report for count of source files under different folder in a Bibucket repository

Jay
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, 2023

Is it possible to fetch report for count of source files under different folder in a Bibucket repository? This is required as part of verification of counts after migration to Bitbucket.

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 5, 2023

There is no feature for that, but you could just:

  1. clone the repo to your local filesystem
  2. then count the files there
    1. ls -l | grep -v ^l | wc -l 

If you have to do this for a large number of repos and dirs, it is super easy to write a shellscript that does a "git clone" then counts the lines and repeat that for each repo.

Jay
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 8, 2023

Thank you for the answer Aron...this helps :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events