GIT contribution per author (lines)

前端 未结 2 948
刺人心
刺人心 2020-12-16 02:11

I\'m trying to print the per-line contribution of each author to a Git repository.

For that, I use the following command, adapted from How to count total lines chang

2条回答
  •  时光说笑
    2020-12-16 02:21

    This means the first part of your expression is not giving any results. Try

    git ls-tree -r -z --name-only HEAD -- */*.c
    

    without the latter part; probably that gives you empty output. Fix that expression to list the files you want to work on... If I use that in a repository not containing any .c files; it gives me the same error as you. Either removing the option */*.c or fixing it to */*.cpp fixed it (depending on the outcome you want)

提交回复
热议问题