git

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MapStatus map[git.StatusCode]workspace.Status = map[git.StatusCode]workspace.Status{
	git.Unmodified:         workspace.Unmodified,
	git.Untracked:          workspace.Untracked,
	git.Modified:           workspace.Modified,
	git.Added:              workspace.Added,
	git.Deleted:            workspace.Deleted,
	git.Renamed:            workspace.Renamed,
	git.Copied:             workspace.Copied,
	git.UpdatedButUnmerged: workspace.UpdatedButUnmerged,
}

Functions

This section is empty.

Types

type IGitService

type IGitService interface {
	CloneRepository(project *workspace.Project, auth *http.BasicAuth) error
	RepositoryExists(project *workspace.Project) (bool, error)
	SetGitConfig(userData *gitprovider.GitUser) error
	GetGitStatus() (*workspace.GitStatus, error)
}

type Service

type Service struct {
	ProjectDir        string
	GitConfigFileName string
	LogWriter         io.Writer
	OpenRepository    *git.Repository
}

func (*Service) CloneRepository

func (s *Service) CloneRepository(project *workspace.Project, auth *http.BasicAuth) error

func (*Service) GetGitStatus added in v0.15.0

func (s *Service) GetGitStatus() (*workspace.GitStatus, error)

func (*Service) RepositoryExists

func (s *Service) RepositoryExists(project *workspace.Project) (bool, error)

func (*Service) SetGitConfig

func (s *Service) SetGitConfig(userData *gitprovider.GitUser) error

Jump to

Keyboard shortcuts

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