Live data from Hacker News

Show HN: Git Heat Map – a tool for visualising git repo activity for each file

github.com

21–30 of 42 posts

Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file

#22
If 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 interested!

https://codeatlas.dev

Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file

#24
It didn't work for me:

  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

#26

Earlier 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…

i'm not sure why it needs sh to begin with.

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

#28

How 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…

Unfortunately the commit info is not independent at the moment, and that is mostly due to wanting to track renaming/deletion of files.

Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file

#29

If 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…

Looks pretty. I can't scroll on the gallery page on mobile, and tapping anywhere on the page (including the top example) just brings up the navigation menu. Switching to desktop mode works.

Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file

#30
post #9

This 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/

WinDirStat is pretty cool! thanks for sharing.
Post reply on HN