Documentation
¶
Index ¶
- func BlameAtCommitKey(repoPath, commitHash string, files []string, sampleSize int) string
- func BlameKey(repoPath, headHash string, files []string, sampleSize int) string
- func CacheSize() (int64, error)
- func Clear(repoPath string) error
- func DebtKey(repoPath string, fixCommitHashes []string) string
- func LogKey(repoPath, headHash string) string
- func MergeLogKey(repoPath, headHash string) string
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlameAtCommitKey ¶
BlameAtCommitKey returns the cache key for blame at a specific commit. Immutable: blame at a fixed commit never changes.
func BlameKey ¶
BlameKey returns the cache key for ConcurrentBlameFiles results. Uses HEAD commit hash — invalidated when HEAD moves.
func DebtKey ¶
DebtKey returns the cache key for CalcDebt results. Keyed by the fix commit hashes used.
func MergeLogKey ¶
MergeLogKey returns the cache key for ParseMergeCommits results.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages disk-based caching of expensive git operations. Cache is stored in ~/.eis/cache/ keyed by repo path hash.
func NewWithDir ¶
NewWithDir creates a cache store with a custom base directory. If baseDir is empty, the default ~/.eis/cache is used.
Click to show internal directories.
Click to hide internal directories.