Scripts - nicokruger/mooimoois GitHub Wiki

Create a function, that given a single argument, the SHA of the git commit, returns the needed data, in JSON format. The format is up to you, just try to keep it sane. Assume that the function/script/whatever will be run in the repository directory, and that the repository is not already checked out to the commit you need.

Heres a preliminary list:

  1. test coverage per commit

  2. developer per commit, per line (ie. work out who last edited line 15 of F.java, if this is not possible, per file (all users who've ever commited to a file) should be OK as well)

  3. time per commit (the timestamp of the commit)

  4. LOC per commit (LOC per language, the more languages the merrier) (of the whole project, not just the commit diff)

  5. tag op die commit of nie

  6. full file listing per commit

  7. full commit message

  8. % of commit being whitespace changes

  9. % of commit adding only comments