9

Is there some program out there (or some magical git plugin I've missed) to get an impact graph or something similar from a git repo without going through github? I'm unsure where I'd begin exactly to write my own, as far as data collection goes (I can generate graphs). I assume there's some flags I could pass to git-log to get commits and authors, but I'm unsure how to get impact (sum of lines added/removed, or maybe total bytes added/removed), and perhaps even skip certain files from consideration.

Kevin
  • 223
  • 3
  • 6

2 Answers2

7

This SO question provides some answers:

git log --author="<authorname>" --pretty=tformat: --numstat

and for the graph itself, I know about this jQuery program (but I haven't tested it), based on json-formatted data. Illustrated here, reported by this message)

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
3

Okay, I too, came to this question hoping to find an easy answer and found none.

Fear not! I have fixed the problem.

Check out https://github.com/jtolds/git-impact

New project, generates nice interactive impact graphs from a git repo.

(x-posted to Is there an "impact graph" tool for non-GitHub projects?, should these questions be merged?)

Community
  • 1
  • 1
jtolds
  • 3,341
  • 3
  • 17
  • 14