How to see changed lines of code between two branches for a specific file type?

I want to create a metric that shows me “changed lines of code” to “Error” between two versions (in my case branches in git).

Since our application has many .swf files, I do not need to count these swf files, and I just want to count java, xml, etc.

Is there any tool that does this? or git command, for example git diff --statfor a specific file type?

+4
source share
1 answer

whether

 git diff --stat branch1..branch2 -- '*.java' '*.xml'

do this job for you?

For me, this happens, but with *.cand *.h.

+12
source

Source: https://habr.com/ru/post/1537873/


All Articles