Documentation
¶
Index ¶
- func CollectCommits(repoPath string, opts models.CollectOptions) ([]models.CommitSummary, string, string, error)
- func CollectFileCommits(repoPath, filePath string, maxCommits, fullDiffCommits int, includeDiff bool) ([]models.CommitSummary, error)
- func CollectRepo(path string, opts models.CollectOptions) (models.RepoData, error)
- func NormalizeRepoRelativePath(repoPath, filePath string) (string, error)
- func ParseGoals() (models.GoalsData, error)
- func PlanFiles() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectCommits ¶
func CollectCommits( repoPath string, opts models.CollectOptions, ) ([]models.CommitSummary, string, string, error)
func CollectFileCommits ¶
func CollectFileCommits(repoPath, filePath string, maxCommits, fullDiffCommits int, includeDiff bool) ([]models.CommitSummary, error)
CollectFileCommits returns the commit history for a specific file path. Commits are ordered oldest-first to support the "why" narrative. Only the newest fullDiffCommits commits keep their diffs; older ones are reduced to messages to bound prompt size (0 = keep all diffs).
func CollectRepo ¶
func NormalizeRepoRelativePath ¶ added in v0.3.0
NormalizeRepoRelativePath converts a user-supplied file path into the slash separated form expected by Git and rejects paths outside repoPath.
func ParseGoals ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.