If I have a specific string how can I use e.g git log
to find the email of the committer from the command line?
I don't want to see the commit. I only want the "one-liner" command to give me only the email of the author.
NOTE: I do NOT have a commit id. I only have a search string. I mean a string that I know is part of a commit for sure.
Update after comment from @axiac:
I have a string X that is "unique" in the sense that is introduced by only 1 committer. The committer adds it to file foo.java
.
I want having only the string X
and foo.java
to find the email of the commiter who added the string