Documentation
¶
Index ¶
- type GitService
- func (s *GitService) AddFileToStaging(file string) error
- func (s *GitService) CreateCommit(message string) error
- func (s *GitService) GetChangedFiles() ([]models.GitChange, error)
- func (s *GitService) GetCurrentBranch() (string, error)
- func (s *GitService) GetDiff() (string, error)
- func (s *GitService) HasStagedChanges() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitService ¶
type GitService struct {
}
func NewGitService ¶
func NewGitService() *GitService
func (*GitService) AddFileToStaging ¶ added in v1.1.0
func (s *GitService) AddFileToStaging(file string) error
func (*GitService) CreateCommit ¶
func (s *GitService) CreateCommit(message string) error
func (*GitService) GetChangedFiles ¶
func (s *GitService) GetChangedFiles() ([]models.GitChange, error)
func (*GitService) GetCurrentBranch ¶ added in v1.1.0
func (s *GitService) GetCurrentBranch() (string, error)
func (*GitService) GetDiff ¶
func (s *GitService) GetDiff() (string, error)
func (*GitService) HasStagedChanges ¶
func (s *GitService) HasStagedChanges() bool
HasStagedChanges verifica si hay cambios en el área de staging
Click to show internal directories.
Click to hide internal directories.