Reputation: 8135
I have to analyze a git repository. Thus I want to ask that is there any command in git that can do following things:
Upvotes: 2
Views: 454
Reputation: 33203
git shortlog -sn -- FolderName
git log --stat
can show that files were touched in each commit. Maybe some parsed version of that is what you mean. If you are after examining code churn by user this is the way to go. For instance, the following will create a file that has one line per commit with who did it and how many lines and files were changed. You can then process this to produce graphs.#!/bin/bash
for id in $(git rev-list HEAD)
do
git log -n 1 --shortstat --format='%h %at %ae' $id | paste - - - -
done
Upvotes: 3