Thread (3 messages) 3 messages, 3 authors, 2021-03-20

Re: [PATCH v10 2/3] interpret-trailers: add own-identity option

flat view

From: Jeff King <hidden>
Date: 2021-03-20 05:25:24

On Sat, Mar 20, 2021 at 10:54:38AM +0800, ZheNing Hu wrote:
I am looking for how to extract each author or committer from the log.
I just know I can use:

$ git log --pretty="%an %ae" | sort | uniq

get all unique author <email> from a git repo.
Is there any function in the source code of git to get them?
If I understand Junio's suggestion correctly, it is very similar to how
"commit --author" works. See how it calls find_author_by_nickname(),
which finds the first commit matching the name, and then pulls out the
full name from format_commit_message().

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help