AlDanial / cloc

cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
GNU General Public License v2.0
19.75k stars 1.02k forks source link

if rename files. statistics are inaccurate #841

Closed fcl564764633 closed 4 months ago

fcl564764633 commented 4 months ago

Hi @AlDanial, thank you for this amazing CLI tool. one git merge, file is renamed or moved to new directory , How to accurately calculate the amount of code, rather than making a full count of the changed files? thanks!

AlDanial commented 4 months ago

File renames could be captured with git's "similarity index" but this capability isn't available in cloc yet. I'll close this issue as it duplicates #765, #780, and #800.