Hacker News new | ask | show | jobs
by ThinkBeat 1310 days ago
It says it does not add files. Where does it store all the info?

I see there are bridges, but I got the impression i do not need one.

1 comments

The info is in the git object store (.git/objects) similar to how git stores files.

The tool creates `Blob`s that are committed to a `Tree` same as git does for files.

These `Blob`s represent git_bug `Operation`s though, stored as JSON. Those operations combined make up a `Bug`. You could technically create a directory of files from what git_bug stores, as git does for regular repos, but each "file" is more like a row in a database than a file.

- https://github.com/MichaelMure/git-bug/blob/master/doc/model...

- https://www.git-scm.com/book/en/v2/Git-Internals-Git-Objects

Thank you very much for helping me understand that.