Is there a way to list files created by a specific author using Git? I also need to filter these results, either by filename (regex/pattern) or folder where they were created.
So what I'm looking for is a list of created (not updated) files by author without filename duplication and without commit messages.
List all commits adding files, showing the commit author and the added files; then paste the author to the front of each file listed:
# add `--author=pattern` to the log arguments to restrict by author
# add anything you like to the `--format=` template
# add any restrictions you like to the `/^A\t/` selector in the awk,
# ... say /^A\t/ && /\.c$/ { etc.
git log --name-status --diff-filter=A --format='> %aN' \
| awk '/^>/ {tagline=$0}
/^A\t/ {print tagline "\t" $0}'
try this
$ git whatchanged --author="yourAthor" --name-only
And also here you have some filters
http://gitref.org/inspect/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With