I clone a Project from Github and i want to extract some features. Can someone give me an instructions to extract:
- Number of users work on this project?
- To extract the most change file? (has more commit)
- Number of commit on this file?
- Number of insertion/deletion on this file?
for users and their commit
to count the number of users
for the number of commit to a certain file you can do
and add 1 to the output divide it by 6 since there are 6 lines for every commit. my shell skills arent that good to do that pipeline
you can also do
for insertion and deletions
gives information per commit, i guess you need to go over that and start counting
also, github can display the same information pretty nicely via stats and file diff stat
for file with most commits you need to go over each file and see the number of commits and take the largest
this is the batch file i’ve wrote. It could be better, but it should get you started
it will make a file with the filename and number of commits next to it. just take the largest