Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeAnalysis ¶
type ChangeAnalysis struct {
Added []string
Modified []string
Deleted []string
Renamed []string
DiffHints []string
FileTypes map[string]int
Scopes []string
}
ChangeAnalysis represents the analysis of staged changes
type FileChange ¶
FileChange represents a single file change
type GitAnalyzer ¶
type GitAnalyzer struct{}
GitAnalyzer handles git repository analysis
func (*GitAnalyzer) AnalyzeChanges ¶
func (g *GitAnalyzer) AnalyzeChanges(changes []FileChange) (*ChangeAnalysis, error)
AnalyzeChanges performs comprehensive analysis of the staged changes
func (*GitAnalyzer) Commit ¶
func (g *GitAnalyzer) Commit(message string) error
Commit creates a git commit with the provided message
func (*GitAnalyzer) GetStagedChanges ¶
func (g *GitAnalyzer) GetStagedChanges() ([]FileChange, error)
GetStagedChanges retrieves all staged changes from git
func (*GitAnalyzer) IsGitRepository ¶
func (g *GitAnalyzer) IsGitRepository() bool
IsGitRepository checks if the current directory is a git repository
Click to show internal directories.
Click to hide internal directories.