How many lines of code modified during a time period?

前端 未结 8 1280
感情败类
感情败类 2020-12-25 14:04

I have been tasked with figuring out how many lines of code I\'ve written this year. Not very exciting for a number of reasons, but it seems like it could make a nice SO qu

8条回答
  •  长情又很酷
    2020-12-25 14:36

    If you are stuck on cvs:

    cvs annotate > annotate.txt
    rem remove the portion before the name
    sed "s/^[0-9. (]*//" annotate.txt > annotate2.txt
    rem remove the portion after the name
    sed "s/[ ].*$//" annotate2.txt > annotate3.txt
    sort annotate3.txt > annotate4.txt
    uniq -c annotate4.txt > annotate5.txt
    

    http://jamesjava.blogspot.com/2007/01/who-has-changed-most-lines-in-cvs.html

提交回复
热议问题