vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Read the metadata tree in one git call
5cecc6183eadab8147d11438abc64d54c4b0a78f · Keenan Nemetz · 10d ago · parent 5fce878d
Read the metadata tree in one git call The issue and change-request loaders read the metadata tree with one `git cat-file` per file, so a page render cost as many processes as the branch had issues and comments. On a repository with 30 change requests the overview paid 114 git invocations and 98 ms; the requests list paid 72 and 90 ms. Read every listed blob through a single `cat-file --batch`. The push validators share the same helper, so pre-receive stops paying one process per file as well. The metadata branch is the whole source of truth for issues and changes, so this is the read path that grows with use. Nothing about the format or the size limits changes: an oversized file is still refused before any of it is allocated.
metadata/issues.go +7−6
| @@ -474,10 +474,12 @@ func ValidateIssues(g *git.Repo, commit string) []string { | |||
| 474 | 474 | if len(problems) > 0 { | |
| 475 | 475 | return problems | |
| 476 | 476 | } | |
| 477 | contents := map[string]string{} | ||
| 477 | var paths, shas []string | ||
| 478 | 478 | for _, e := range blobs { | |
| 479 | 479 | switch { | |
| 480 | 480 | case strings.HasPrefix(e.Name, IssuesDir+"/"): | |
| 481 | paths = append(paths, e.Name) | ||
| 482 | shas = append(shas, e.SHA) | ||
| 481 | 483 | case strings.HasPrefix(e.Name, RequestsDir+"/"): | |
| 482 | 484 | // Reserved: change requests are validated by their own code when they | |
| 483 | 485 | // land. Accepting the prefix now keeps the layout stable. | |
| @@ -491,11 +493,10 @@ func ValidateIssues(g *git.Repo, commit string) []string { | |||
| 491 | 493 | e.Name, IssuesDir, RequestsDir, ReleasesDir)) | |
| 492 | 494 | continue | |
| 493 | 495 | } | |
| 494 | data, err := g.BlobBySHA(e.SHA) | ||
| 495 | if err != nil { | ||
| 496 | return append(problems, fmt.Sprintf("cannot read %s: %v", e.Name, err)) | ||
| 497 | } | ||
| 498 | contents[e.Name] = string(data) | ||
| 496 | } | ||
| 497 | contents, err := readBlobs(g, paths, shas) | ||
| 498 | if err != nil { | ||
| 499 | return append(problems, err.Error()) | ||
| 499 | 500 | } | |
| 500 | 501 | problems = append(problems, ReleaseProblems(g, commit)...) | |
| 501 | 502 | if _, err := ParseIssues(contents); err != nil { | |