Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository represents a git repository with additional functionality
func NewRepository ¶
func NewRepository(path string) (*Repository, error)
NewRepository creates a new Repository instance
func (*Repository) ApplyIgnorePatterns ¶
func (r *Repository) ApplyIgnorePatterns(diff, basePath string) (string, error)
ApplyIgnorePatterns filters the diff content based on .caiignore files
func (*Repository) GetDiff ¶
func (r *Repository) GetDiff() (string, error)
GetDiff returns the diff of staged changes, or unstaged changes if nothing is staged
Click to show internal directories.
Click to hide internal directories.