我有一個用戶案例,我需要計算每個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是否提供排除文件的功能?