[0] https://wakatime.com/blog/58-chatgpt-prototyped-our-new-feat...
Show HN: Git Heat Map – a tool for visualising git repo activity for each file
21–30 of 42 posts
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#22Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#23Nice to see which parts are changing the most in a project to maybe see if it should be improved or at least to direct efforts of improving quality to these spots.
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#24 File "git-database.py", line 263, in
main()
File "git-database.py", line 247, in main
last_commit = handle_commit(cur, lines)
File "git-database.py", line 178, in handle_commit
handle_match(cur, matches[i], commit_lines[2+i], fields)
File "git-database.py", line 197, in handle_match
p, n = secondary_line.split("|")
ValueError: not enough values to unpack (expected 2, got 1)Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#25Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#26Earlier quoted context omitted.
After cloning, I had to change the perms of the .sh files, install flask via pip and hope for the best. I wasn't sure what Python version to use, I used some 3.x. It would be really nice if this was fully containerized and I could launch in docker/podman. Also I wasn't sure how to get the colors :shrug:
Thanks for the feedback, I'll try to add instructions for the sh files and the python version. This is still very much a WIP so I'm not going to look into docker just yet. For the highlighting, currently only a single email pattern input is supported. Type in your pattern into the box at the bottom, then click submit. The pattern gets fed into a LIKE statement in SQLite, so just plaintext, with % representing a wildc…
At a glance the sh script can be trivially replaced by native python. And it would make it work cross-platform (i.e. on Windows).
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#27It would be nice if the heatmap showed addition, deletion, and possibly modification separately. I can't think of suitable visualization methods, but if I can see them individually, it gives more insights.
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#28How much faster are your benchmarks using WAL mode? https://www.sqlite.org/wal.html
I experimented earlier to push the limits of SQLite inserts and wrote a blog post[0] about it. We can apply some of the learnings here. I reviewed the OP's code and did some benchmarks; SQLite is not the bottleneck here. The code first generates the commit info from the git log, prints that to stdin [1] and the python script reads from it one by one in a loop [2]. Each of the commit info is written to SQLite. So, wit…
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#29If you think this is useful, you might also like codeatlas.dev and its Github Action ( https://github.com/codeatlasHQ/codebase-visualizer-action ). It currently does not support per-contributor activity, but we put a lot of effort into making the diagrams beautiful to look at and the basic approach of using treemaps for visualisation seems very similar. In fact, could be cool to collaborate on this, DM me if interest…
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#30This is cool. The visualization reminds me of the visualization of QDirStat/WinDirStat. Also shout out to the (mostly useless but cool looking) git history visualizer, Gource[0]. https://gource.io/