Skip to content

Instantly share code, notes, and snippets.

@dblevins
Last active February 16, 2019 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblevins/fa72954d424386e19ec13837d00681d8 to your computer and use it in GitHub Desktop.
Save dblevins/fa72954d424386e19ec13837d00681d8 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Create a tmp place to work
TMP=/tmp/tomee-$RANDOM
trap "rm -rf $TMP" SIGINT SIGTERM SIGHUP SIGKILL SIGSTOP
mkdir $TMP && cd $TMP
# clone the repo
git clone git@github.com:apache/tomee.git &&
cd tomee
# Log who is in the commit history every day in november and december
for date in 2019-0{1,2}-0{1..9} 2019-0{1,2}-{10..31}; do
git checkout `git rev-list -n 1 --before="$date 23:59" master` &> /dev/null
git log | grep '^Author' | sort | uniq > "first-$date"
done
# collect all those files. they will naturally be sorted
contributors=( $(ls first-2019-0*) )
# compare the list of committers in the current file with the previous file
for ((i=0; i<${#contributors[@]}; i++)) {
[[ $i == 0 ]] && continue;
diff "${contributors[$(($i-1))]}" "${contributors[$i]}" | grep '^>' | perl -pe "s,^>,${contributors[$i]},"
}
@dblevins
Copy link
Author

first-2018-11-12 Author: Dennis Kieselhorst deki@apache.org
first-2018-11-12 Author: Jimmy Casey casey.jimmy@gmail.com
first-2018-11-12 Author: Roberto Cortez radcortez@yahoo.com
first-2018-11-12 Author: ivanjunckes ijunckes@tomitribe.com
first-2018-11-19 Author: CesarHernandezGt cfhernan123@gmail.com
first-2018-11-19 Author: Richard Monson-Haefel Richard@Uncommon-Design.com
first-2018-11-19 Author: monsonhaefel richard@uncommon-design.com
first-2018-11-21 Author: Richard Monson-Haefel Richard@Uncommon-Design.com
first-2018-11-21 Author: monsonhaefel richard@uncommon-design.com
first-2018-11-23 Author: Richard Monson-Haefel Richard@Uncommon-Design.com
first-2018-11-23 Author: monsonhaefel richard@uncommon-design.com
first-2018-11-25 Author: Frank Jung frank@frandly.de
first-2018-12-02 Author: Hayri Cicek hayricicek@Hayris-MBP.lan
first-2018-12-03 Author: David Blevins david.blevins@gmail.com
first-2018-12-03 Author: David R. Heffelfinger dheffelfinger@ensode.com
first-2018-12-03 Author: Matthew Broadhead nbmlaw@gmail.com
first-2018-12-03 Author: Sendil Kumar sendilkumarn@live.com
first-2018-12-03 Author: dalexandrov mitiaalexandrov@gmail.com
first-2018-12-03 Author: rzo1 richard@zowalla.com
first-2018-12-04 Author: CesarHernandezGt cfhernan123@gmail.com
first-2018-12-05 Author: Carlos Chacin cchacin@gmail.com
first-2018-12-05 Author: Cesar Hernandez cesarhernandezgt@users.noreply.github.com
first-2018-12-05 Author: David Blevins david.blevins@gmail.com
first-2018-12-05 Author: David R. Heffelfinger dheffelfinger@ensode.com
first-2018-12-05 Author: Hayri Cicek hayri@kodnito.com
first-2018-12-05 Author: Matthew Broadhead nbmlaw@gmail.com
first-2018-12-05 Author: Sendil Kumar sendilkumarn@live.com
first-2018-12-05 Author: dalexandrov mitiaalexandrov@gmail.com
first-2018-12-06 Author: Daniel Dias daniel.dias.analistati@gmail.com
first-2018-12-06 Author: Mischa Spiegelmock revmischa@cpan.org
first-2018-12-07 Author: Jose Henrique Ventura javawebhenrique@gmail.com
first-2018-12-07 Author: josehenriqueventura <J2705hvq*>
first-2018-12-07 Author: josehenriqueventura jose.ventura@protonmail.com
first-2018-12-08 Author: Josh Juneau juneau@fnal.gov
first-2018-12-09 Author: Jose Henrique Ventura javawebhenrique@gmail.com
first-2018-12-09 Author: Robert Panzer rpanzer@tomitribe.com
first-2018-12-09 Author: josehenriqueventura <J2705hvq*>
first-2018-12-09 Author: josehenriqueventura jose.ventura@protonmail.com
first-2018-12-10 Author: Josh Juneau juneau@fnal.gov
first-2018-12-10 Author: Kaloyan Spiridonov kaloyan.spiridonov@sap.com
first-2018-12-14 Author: Michael P. Redlich mike@redlich.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment