[英]Git diff between two tags with username
I can do following: 我可以执行以下操作:
git diff tag1 tag2 --stat
But this gives me list of files.. How can I know all users who have worked between these two tags ! 但这给了我文件列表。我怎么知道在这两个标签之间工作的所有用户!
A first approach could use git log
: 第一种方法可以使用
git log
:
In the git repo itself: 在git repo本身中:
git log v2.9.0..v2.9.3 --name-only --format="%aN <%aE>" --reverse
git log <olderTag>..<newerTag> --name-only --format="%aN <%aE>" --reverse
^^
|_ don't forget the two dots.
(On the git dots syntax, see " What are the differences between double-dot “..” and triple-dot “…” in Git commit ranges? ") (关于git点语法,请参阅“ Git提交范围中的双点“ ..”和三点“ ...”之间有什么区别? ”)
That gives: 这给出了:
Eric Wong <e@80x24.org>
daemon.c
Edward Thomson <xx@xx>
pretty.c
t/t6006-rev-list-format.sh
David Kastrup <xx@gxx>
builtin/blame.c
René Scharfe <xx@xx>
t/t4051-diff-function-context.sh
t/t4051/appended1.c
t/t4051/appended2.c
t/t4051/dummy.c
t/t4051/hello.c
t/t4051/includes.c
.... ....
And to get just the list of unique contributors: 并获得唯一贡献者的列表:
git log v2.9.0..v2.9.3 --format="%aN <%aE>" --reverse|sort|uniq
That returns: 返回:
Alex Henrie <xx@xx.com>
Alfred Perlstein <xx@xx.org>
Andreas Brauchli <a.xx@xx.net>
Andrew Oakley <xx@xx.com>
Armin Kunaschik <xx@xx.com>
Charles Bailey <xx@xx.net>
Charles Bailey <xx@xx.org>
Chris Packham <xx@xx.com>
Dave Nicolson <xx@xx.com>
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.