Every changed file is listed on MR, commit and compare pages. Generated files (lockfiles, vendor/, node_modules/, minified or generated code) and files over 2,000 changed lines render collapsed, with no rows.
"load diff" fetches that one file in place (one request, one file read, no scroll jump). Without JS, ?file=i reloads the page with the file spliced in.
One-file loads are capped at 8 MiB and 50,000 changed lines; beyond, the file shows a raw link and takes no line comment. Line comments accept any line the page can load.
Only changed lines count against the diff line limits (context lines no longer do).
API/CLI: files gain omitted (large, budget, unavailable) via ermite-api v0.11.0; truncated keeps its meaning.
static/js/lazy.js holds the shared lazy loader for MR, commit and compare pages.
Depends on !13: will be rebased after it merges (conflicts expected in mr.go, mr.js and goldens).
Checks: go build/vet/test, node --test (170), templ -check, Chromium check of load diff, scroll, focus, Enter, no-JS and idle mutations.
@@ -60,16 +60,16 @@ func (_mock *BrowseService) GetCommit(ctx context.Context, p domain.Principal, r
60
60
61
61
var r0 domain.CommitDetail
62
62
var r1 error
63
-
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision) (domain.CommitDetail, error)); ok {
64
-
return returnFunc(ctx, p, repo, rev)
63
+
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision, ports.GetCommitOptions) (domain.CommitDetail, error)); ok {
64
+
return returnFunc(ctx, p, repo, rev, opts)
65
65
}
66
-
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision) domain.CommitDetail); ok {
67
-
r0 = returnFunc(ctx, p, repo, rev)
66
+
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision, ports.GetCommitOptions) domain.CommitDetail); ok {
67
+
r0 = returnFunc(ctx, p, repo, rev, opts)
68
68
} else {
69
69
r0 = ret.Get(0).(domain.CommitDetail)
70
70
}
71
-
if returnFunc, ok := ret.Get(1).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision) error); ok {
72
-
r1 = returnFunc(ctx, p, repo, rev)
71
+
if returnFunc, ok := ret.Get(1).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision, ports.GetCommitOptions) error); ok {
72
+
r1 = returnFunc(ctx, p, repo, rev, opts)
73
73
} else {
74
74
r1 = ret.Error(1)
75
75
}
@@ -86,11 +86,12 @@ type BrowseService_GetCommit_Call struct {
@@ -60,16 +60,16 @@ func (_mock *BrowseService) GetCommit(ctx context.Context, p domain.Principal, r
60
60
61
var r0 domain.CommitDetail
61
var r0 domain.CommitDetail
62
var r1 error
62
var r1 error
63
-
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision) (domain.CommitDetail, error)); ok {
63
+
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision, ports.GetCommitOptions) (domain.CommitDetail, error)); ok {
64
-
return returnFunc(ctx, p, repo, rev)
64
+
return returnFunc(ctx, p, repo, rev, opts)
65
}
65
}
66
-
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision) domain.CommitDetail); ok {
66
+
if returnFunc, ok := ret.Get(0).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision, ports.GetCommitOptions) domain.CommitDetail); ok {
67
-
r0 = returnFunc(ctx, p, repo, rev)
67
+
r0 = returnFunc(ctx, p, repo, rev, opts)
68
} else {
68
} else {
69
r0 = ret.Get(0).(domain.CommitDetail)
69
r0 = ret.Get(0).(domain.CommitDetail)
70
}
70
}
71
-
if returnFunc, ok := ret.Get(1).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision) error); ok {
71
+
if returnFunc, ok := ret.Get(1).(func(context.Context, domain.Principal, domain.RepoName, domain.Revision, ports.GetCommitOptions) error); ok {
72
-
r1 = returnFunc(ctx, p, repo, rev)
72
+
r1 = returnFunc(ctx, p, repo, rev, opts)
73
} else {
73
} else {
74
r1 = ret.Error(1)
74
r1 = ret.Error(1)
75
}
75
}
@@ -86,11 +86,12 @@ type BrowseService_GetCommit_Call struct {