1

Is there any way to use git to get the amount of lines a particular developer committed on a given day/week?

I understand that you can count the total lines an author has committed like so: How to count total lines changed by a specific author in a Git repository?, but it would be useful to segment by day or week.

Update

The best solution I could find to this was to combine an answer from here: How to count total lines changed by a specific author in a Git repository? with the --since and --before filters mentioned below:

git log --author="<author>" --since=“<date>” --before=“<date>” --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -
Community
  • 1
  • 1
James Flight
  • 1,424
  • 1
  • 13
  • 21

0 Answers0