17 matches across 1 files for error path:processor/history.go lang:Go lang:Go path:processor/history.go
snippet_mode: auto · sorted by relevance
processor/history.go GO 17 matches · showing 5 view file →
5import (
6 "context"
7 "errors"
8 "fmt"
9 "io"
· · ·
125// collected --depth commits. iter.ForEach surfaces whatever the callback
126// returns, so we can compare it back at the call site directly.
127var errStopIter = errors.New("history: stop iteration")
128
129// Bucketing divides [From, To] into N equal time slices. Used by the timeline
· · ·
201// (newest first → oldest first), and feeds every commit's first-parent diff
202// to the observer.
203func runHistory(repoPath string, observer CommitObserver) (HistoryWindow, error) {
204 // Turn GC back on because we have no idea how much we are about to process
205 EnableGc()
· · ·
207 repo, err := git.PlainOpenWithOptions(repoPath, &git.PlainOpenOptions{DetectDotGit: true})
208 if err != nil {
209 return HistoryWindow{}, fmt.Errorf("open git repository: %w", err)
210 }
211
· · ·
212 head, err := repo.Head()
213 if err != nil {
214 if errors.Is(err, plumbing.ErrReferenceNotFound) {
215 observer.Finalise(HistoryWindow{}, emptySnapshot())
216 return HistoryWindow{}, nil
+ 12 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.