When Cloc --diff command is executed, it lists differences between all the extensions. Source code consists c,h,xml,yaml files. Can we get the diff for only specific extensions like ".c",".cpp",".h"?

Provides difference for all extension types

1

There are 1 best solutions below

0
On

Yes. The --include-ext switch lets you define the subset of extensions to consider, ref https://github.com/AlDanial/cloc#options- .

--include-ext=c,cpp,h should do what you have in mind.