git

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitService

type GitService struct {
	// contains filtered or unexported fields
}

func NewGitService

func NewGitService(trans *i18n.Translations) *GitService

func (*GitService) AddFileToStaging added in v1.1.0

func (s *GitService) AddFileToStaging(ctx context.Context, file string) error

func (*GitService) CreateCommit

func (s *GitService) CreateCommit(ctx context.Context, message string) error

func (*GitService) CreateTag added in v1.3.0

func (s *GitService) CreateTag(ctx context.Context, version, message string) error

func (*GitService) GetChangedFiles

func (s *GitService) GetChangedFiles(ctx context.Context) ([]models.GitChange, error)

func (*GitService) GetCommitCount added in v1.3.0

func (s *GitService) GetCommitCount(ctx context.Context) (int, error)

func (*GitService) GetCommitsBetweenTags added in v1.4.0

func (s *GitService) GetCommitsBetweenTags(ctx context.Context, fromTag, toTag string) ([]models.Commit, error)

func (*GitService) GetCommitsSinceTag added in v1.3.0

func (s *GitService) GetCommitsSinceTag(ctx context.Context, tag string) ([]models.Commit, error)

func (*GitService) GetCurrentBranch added in v1.1.0

func (s *GitService) GetCurrentBranch(ctx context.Context) (string, error)

func (*GitService) GetDiff

func (s *GitService) GetDiff(ctx context.Context) (string, error)

func (*GitService) GetLastTag added in v1.3.0

func (s *GitService) GetLastTag(ctx context.Context) (string, error)

func (*GitService) GetRecentCommitMessages added in v1.4.0

func (s *GitService) GetRecentCommitMessages(ctx context.Context, count int) (string, error)

func (*GitService) GetRepoInfo added in v1.3.0

func (s *GitService) GetRepoInfo(ctx context.Context) (string, string, string, error)

func (*GitService) GetTagDate added in v1.4.0

func (s *GitService) GetTagDate(ctx context.Context, tag string) (string, error)

GetTagDate returns the creation date of a tag in YYYY-MM-DD format

func (*GitService) HasStagedChanges

func (s *GitService) HasStagedChanges(ctx context.Context) bool

HasStagedChanges verifica si hay cambios en el área de staging

func (*GitService) PushTag added in v1.3.0

func (s *GitService) PushTag(ctx context.Context, version string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL