Documentation ¶
Index ¶
- func DetectGitRepositoryRoot(path string) (string, error)
- func PoorMansClone(sourceDir string, targetDir string, ref string) error
- type GitRepoInfo
- type MirroredGitRepo
- func (g *MirroredGitRepo) CloneProject(ref string, targetDir string) error
- func (g *MirroredGitRepo) DefaultRef() *string
- func (g *MirroredGitRepo) HasUpdated() bool
- func (g *MirroredGitRepo) Lock() error
- func (g *MirroredGitRepo) MaybeWithLock(lock bool, cb func() error) error
- func (g *MirroredGitRepo) RemoteRefHashesMap() map[string]string
- func (g *MirroredGitRepo) Unlock() error
- func (g *MirroredGitRepo) Update(authProviders *auth2.GitAuthProviders) error
- func (g *MirroredGitRepo) WithLock(cb func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectGitRepositoryRoot ¶
Types ¶
type GitRepoInfo ¶
func GetGitRepoInfo ¶
func GetGitRepoInfo(path string) (ri GitRepoInfo, err error)
type MirroredGitRepo ¶
type MirroredGitRepo struct {
// contains filtered or unexported fields
}
func NewMirroredGitRepo ¶
func NewMirroredGitRepo(u git_url.GitUrl) (*MirroredGitRepo, error)
func (*MirroredGitRepo) CloneProject ¶
func (g *MirroredGitRepo) CloneProject(ref string, targetDir string) error
func (*MirroredGitRepo) DefaultRef ¶
func (g *MirroredGitRepo) DefaultRef() *string
func (*MirroredGitRepo) HasUpdated ¶
func (g *MirroredGitRepo) HasUpdated() bool
func (*MirroredGitRepo) Lock ¶
func (g *MirroredGitRepo) Lock() error
func (*MirroredGitRepo) MaybeWithLock ¶
func (g *MirroredGitRepo) MaybeWithLock(lock bool, cb func() error) error
func (*MirroredGitRepo) RemoteRefHashesMap ¶
func (g *MirroredGitRepo) RemoteRefHashesMap() map[string]string
func (*MirroredGitRepo) Unlock ¶
func (g *MirroredGitRepo) Unlock() error
func (*MirroredGitRepo) Update ¶
func (g *MirroredGitRepo) Update(authProviders *auth2.GitAuthProviders) error
func (*MirroredGitRepo) WithLock ¶
func (g *MirroredGitRepo) WithLock(cb func() error) error
Directories ¶
Path | Synopsis |
---|---|
This is copied from https://github.com/sosedoff/gitkit and simplified
|
This is copied from https://github.com/sosedoff/gitkit and simplified |
Click to show internal directories.
Click to hide internal directories.