Git: How to measure the amount of code changed in a period of time?

git

Solution

Following up the excellent answer Gabriele found, the exact command you need is:

git log --since=31/12/2012 --numstat --pretty="%H" | awk '
    NF==3 {plus+=$1; minus+=$2;}
    END   {printf("+%d, -%d\n", plus, minus)}'

(yes, you can paste that onto a single line, but the answer's more readable like this)

The key difference is the in a certain period of time requirement, handled by the `--since` argument.

Problem

I'm looking for a command to execute against my git repo to discover the amount of code changed in a certain period of time. I want to know how much code was changed since day 'X'. I don't really care about the percentage of code changed by each author.

Original source

Related problems