Can I get git to tell me all the files one user has modified?

Viewed 40653

I would like git to give me a list of all the files modified by one user, across all commits.

My particular use case is that I've been involved in the i18n of a ruby on rails project, and we want to know what files have already been done and what files still need to be done. The users in question have only done work on the i18n, not on the rest of the code base. So the information should all be in git, but I'm not sure how to get it out.

5 Answers
git log --pretty= --author=@abcd.com --name-only | sort -u | wc -l

Shows all modified files by company in the git repo.

git log --pretty= --author=user@abcd.com --name-only | sort -u | wc -l

Shows all modified files by author name 'user' in the git repo.

If you only want the list of filename:

git log --author= --pretty=format:%h | xargs git diff --name-only | sort | uniq

Related