Search code examples
gitversionlinediffauthor

How can I calculate the number of lines changed between two versions in git by an author?


Is there any way to calculate the number of lines changed between two versions in git by an author?

Between two versions without author, the command is:

git diff v0.6.0 v0.7.0 --shortstat
 1752 files changed, 79218 insertions(+), 150134 deletions(-)

But I would like to see the line changes between versions and authors.

That would be very nice.

Thank you for your help.


Solution

  • i have found the solution:

    git log v0.6.0 v0.7.0 --author="Maier" --oneline --shortstat

    Thank you very much!

    Best regards