我有一个用户案例,我需要计算每个BUC-ID的代码行数。 我一直在使用如何在计算代码行时跳过特定的文件?
git log --shortstat --grep=BUC3565-EPIC16 |grep -E "fil(e|es) changed" | awk -v BUC=$i '{ inserted+=$4; deleted+=$6; delta+=$4-$6i } END {printf "%s, %s, %s, %s \n",BUC, inserted, deleted, delta }'
现在我有BUC-ID与多个文件实现相同。有没有什么办法可以跳过几个文件/文件夹,并且仍然能够计算该BUC-ID的线路关闭代码?
Basically, I need to exclude some files/folders while calculating Lines of Code. I am not able to do so because each commit has multiple files. Some should be included and some excluded...Any idea how to achieve that?
CLOC是否提供排除文件的功能?