github - Git diff between two tags with username -


i can following:

git diff tag1 tag2 --stat 

but gives me list of files.. how can know users have worked between these 2 tags !

a first approach use git log:

in git repo itself:

 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 2 dots. 

(on git dots syntax, see "what differences between double-dot “..” , triple-dot “…” in git commit ranges?")

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 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> ... 

Comments