News for hackers. Stuff that matters.
Re:Plotting the source code “TODO” history of the most popul... by unwind on Monday May 17, 2021 @03:44AM (#27180945)
As a starting point,

    git log --format=format:"%at %H" | sort -nr
gives a list, with the oldest entry first, of just "hash timestamp" pairs, one per line.

You can then use e.g.

    date -I --date='@1620720025'
to convert the timestamp back to a human-readable date in ISO format, i.e. "2021-05-11".

The next step would be to loop over the list, checkout each revision, grep and wc the TODOs, and collect into date buckets. Anyone? :)

There are no comments on this comment yet.