I am trying to get authors of changes between 2 commits.
What would be the best for me is something like:
git diff --name-only master
but instead of
--name-only
parameter like
--authors-only
But unfortunately diff
does not have such one. There is no restriction I have to use diff
command, git log
or others are also fine.
I need to it to blame people who caused tests to fail.
you can use something like
git log --pretty=format:"%an %aE" f398e997ea9ad81e586b1f751693cd336963ba6a ^bb69eb11d979437a0b390ac9333342e7594c211c
where the format will print the author name and email and than the commits see List commits between 2 commit hashes in git
for more information on how to use get the commits between two given commits.
git log --pretty=format:"%an" prevTestCommit..lastTestCommit | sort | uniq
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