Unrelated to Kotlin, but does anyone have a compel...
# random
r
Unrelated to Kotlin, but does anyone have a compelling data/database model on how to track Git commits and branches? I'm working on a project that compiles scan data (SAST, dependencies, etc.), which only has the repository URL and commit hash. I want to be able to say "this scan of
b7fb829
is for the master branch", and "this scan of
168aafd
is the latest for the master branch".
The naive approach would be to create a webhook on GitHub to track commits and simply relate them in the database (
b7fb829
=
master
,
168aafd
= (master, hot-fix-3)), instead of keeping a proper 'graph'.
j
gource https://gource.io/ has some interesting reification happening though im not sure about multiple branches.
r
I'll check gource out; thanks!