On Tue, Aug 14, 2018 at 04:30:09PM +0200, Duy Nguyen wrote: > > I frequently using "git shortlog -ns" to see who is active (especially > > coupled with "--since=". > > > > I also use "--no-merges", because it makes me look a lot better when > > compared relatively to Junio. :) > > --no-merges makes me number one. Not sure if I should laugh or cry :D Since when? Junio still has everyone beat for all time, though of course he cheats with easy ones like "update version field to v2.17.1". :) I also sometimes look at "shortlog -ns --no-merges v2.17.0..v2.18.0" and so on (i.e., each major release). I had a good run from about v2.10 to v2.15, but I've been slipping since then. > Going off topic a bit, can we count the number of topics of each > contributor? I could do it by decorating git log with remote refs from > Junio's repo and counting based on the two-letter prefix in the > topic/ref name but that's too hacky. fyi Jeff you're up to second > position now with 34 topics (I'm unfortunately still the first with > 38). One problem there is that the prefixes are ambiguous (e.g., Jacob Keller shares with me, and I think at least one other over the years). You could look at the author of the tip commit, but that's not always right (and in fact, counting just merged topics misses bug-fixes that get applied directly on top of other people's topics). And of course there's the notion that "topic" might be a documentation typo fix, or it might be the entire range-diff program. I think "surviving lines" is another interesting metric, though it also has flaws (if I s/sha1/oid/ on your line, it becomes my line; even though my change is useful and should be counted, it's probably not as important as whatever the code was doing in the first place). -Peff