On 03/02/2016 08:48 PM, malc wrote: > I still fail to understand the bikeshedding here - you really don't > need a git checkout to get something akin to a changelog. Use the > github API directly... > > The following 1-liner could be trivially productised (maybe even parse > $PWD to set the path argument...) > > curl https://api.github.com/repos/gentoo/gentoo/commits?path=app-admin/eselect > | perl -MJSON -e 'foreach $i (@{decode_json(join("",@lines=<STDIN>))}) > { print "$i->{commit}->{author}->{name} - > $i->{commit}->{author}->{date}\n\n $i->{commit}->{message}\n"; }' Requires you to be online, can't grep over multiple packages.
This version relies on an unreliable thirdparty service and is thus more of an intellectual curiosity. > Yeah - it's not quite as pretty as our current Changelog, but date, > author/committer, commit-msg etc. are all there and you can filter by > path just the same as you would with native git log... > You could parse the local $PORTDIR/metadata/timestamp* and add an > 'until' param to the URL to filter commits beyond where a user has > rsync'd up to... > It is almost, but not completely unlike it. A simple ChangeLog is a lot easier ... (Why are people now trying to add middleware layers to indirect the problem to become invisible in a huge machinery? This is wonderfully insane ...)