Documentation
¶
Index ¶
- type Analyzer
- func (a *Analyzer) AnalyzeCommit(commit *object.Commit, previousSnapshot Snapshot) (*Result, error)
- func (a *Analyzer) BlobCacheLen() int
- func (a *Analyzer) ClearBlobCache()
- func (a *Analyzer) ClearDiffCache()
- func (a *Analyzer) DependenciesAtCommit(commit *object.Commit) ([]Change, error)
- func (a *Analyzer) DependenciesInWorkingDir(root string, includeSubmodules bool) ([]Change, error)
- func (a *Analyzer) DiffCacheLen() int
- func (a *Analyzer) PrefetchDiffs(hashes []plumbing.Hash, numWorkers int)
- func (a *Analyzer) SetRepoPath(path string)
- type Change
- type Result
- type Snapshot
- type SnapshotEntry
- type SnapshotKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
func (*Analyzer) AnalyzeCommit ¶
func (*Analyzer) BlobCacheLen ¶ added in v0.14.0
BlobCacheLen returns the current number of entries in the blob cache.
func (*Analyzer) ClearBlobCache ¶ added in v0.14.0
func (a *Analyzer) ClearBlobCache()
ClearBlobCache replaces the blobCache with a fresh empty map, allowing the GC to reclaim all cached parse results.
func (*Analyzer) ClearDiffCache ¶ added in v0.15.0
func (a *Analyzer) ClearDiffCache()
ClearDiffCache replaces the diffCache with a fresh empty map, allowing the GC to reclaim all cached diff entries.
func (*Analyzer) DependenciesAtCommit ¶
func (*Analyzer) DependenciesInWorkingDir ¶ added in v0.11.0
func (*Analyzer) DiffCacheLen ¶ added in v0.14.0
DiffCacheLen returns the current number of entries in the diff cache.
func (*Analyzer) PrefetchDiffs ¶
PrefetchDiffs pre-computes diffs for all commits using a single git log command. Output is streamed via StdoutPipe so the raw git output is never held in memory.
func (*Analyzer) SetRepoPath ¶
SetRepoPath sets the repository path for git shell commands.
type Snapshot ¶
type Snapshot map[SnapshotKey]SnapshotEntry
type SnapshotEntry ¶
type SnapshotKey ¶
Click to show internal directories.
Click to hide internal directories.