If you are asking about all the authors who comment on a given file,
git shortlog --numbered --summary HEAD --follow <filename>
would be the solution.
Note, however, that the parameter --follow
does not always work correctly, acros renames a more complex (less linear) history.
source
to share