This will count the line(s) displaying the commit ID along with the commit message. To exclude those lines and count only the lines describing changes, do the following:
git whatchanged master.. --format=oneline | grep "^:" | wc -l
Piping to grep "^:" will select the lines beginning with the colon, which are all file modifications.
This will count the line(s) displaying the commit ID along with the commit message. To exclude those lines and count only the lines describing changes, do the following:
git whatchanged master.. --format=oneline | grep "^:" | wc -l
Piping to grep "^:" will select the lines beginning with the colon, which are all file modifications.