Expand description
mushroomdb ingest-git <db> <repo>: build and maintain a graph of a git
repository. First run ingests the whole history; later runs apply only the
commits after the recorded GitSync head, so deletes and renames retract
or move derived edges instead of leaving them stale.
Graph shape:
| Label | key (id) | props |
|---|---|---|
Author | name | |
Commit | full sha | message, ts, author_id |
File | path | path, dir, ext, commits, n_commits, top_author_id, author_counts |
GitSync | "__mushroomdb_git_sync__" | sha |
Edges: user TOUCHED Commit→File, auto-FK AUTHOR Commit→Author and
TOP_AUTHOR File→Author, rule-derived CO_CHANGED File→File and KNOWS
Author→File.
Structs§
Constants§
- DEFAULT_
MAX_ COMMITS_ PER_ FILE - Cap on the
commitslist stored per file. Bounds both node size and the cost of the jaccard overlap theco_changedrule runs over that list.