0

I'd like to know how can I get a list of all files that a particular user had edited since it started do commit and push in the repository.

I need to do that because this user should have created a new branch for its modifications but it didn`t do that so I need do find a way to solve this.

:)

vhbsouza
  • 407
  • 2
  • 5
  • 15

1 Answers1

1

git log --name-only --oneline --author user > changed_files_tmp.txt

For each commit there will be record:

7ac4432 Bug 100 Try to fix
file1
file2
dir/file3

You need to delete lines with commit messages ( I hope you have some pattern in commit messages ) and you have list of files, changed by this user. In this case I assume, that all commits have Bug in commit message and there is no Bug file:

cat changed_files_tmp.txt | grep -v Bug | sort | uniq > changed_files.txt

Roman Zaitsev
  • 1,328
  • 5
  • 20
  • 28