31 matches across 1 files for func main path:processor/history.go
snippet_mode: auto · sorted by relevance
processor/history.go GO 31 matches · showing 5 view file →
20
21// HistoryDepth is the maximum number of commits the history engine walks. 0
22// means "entire history". Wired to --depth in main.go.
23var HistoryDepth = 1000
24
· · ·
141// pass user input unchecked. A degenerate window (from == to or to before
142// from) yields Width=0; all commits land in bucket 0 / N-1.
143func NewBucketing(from, to time.Time, n int) Bucketing {
144 if n <= 0 {
145 n = 1
· · ·
155// clamp to 0 (defensive — should not happen given the walk window). Times at
156// or after To clamp to N-1.
157func (b Bucketing) Index(t time.Time) int {
158 if b.N <= 0 {
159 return 0
· · ·
180// Start returns the wall-clock start time of bucket i. Indexes outside
181// [0, N) are clamped.
182func (b Bucketing) Start(i int) time.Time {
183 if b.N <= 0 {
184 return b.From
· · ·
194
195// emptySnapshot is what observers see when HEAD is missing or empty.
196func emptySnapshot() HeadSnapshot {
197 return HeadSnapshot{Files: map[string]HeadFile{}}
198}
+ 26 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.