How to ignore folder vendor with git diff (cf. Exclude a directory from git diff)
git diff --stat=80 master..branch -- . ':!vendor' ':!another'