Documentation ¶
Index ¶
- Constants
- func GetGitRepoCacheDir() string
- func GetWorkTreeCacheDir() string
- func HasSubmodulesInCommit(commit *object.Commit) (bool, error)
- type Archive
- type ArchiveFile
- type ArchiveOptions
- type ArchiveType
- type Base
- type Checksum
- type ChecksumDescriptor
- type ChecksumOptions
- type FilterOptions
- type GitRepo
- type Local
- func (repo *Local) CheckIgnore(paths []string) (*check_ignore.Result, error)
- func (repo *Local) Checksum(opts ChecksumOptions) (checksum Checksum, err error)
- func (repo *Local) CreateArchive(opts ArchiveOptions) (Archive, error)
- func (repo *Local) CreateDetachedMergeCommit(fromCommit, toCommit string) (string, error)
- func (repo *Local) CreatePatch(opts PatchOptions) (Patch, error)
- func (repo *Local) FetchOrigin() error
- func (repo *Local) GetMergeCommitParents(commit string) ([]string, error)
- func (repo *Local) HeadCommit() (string, error)
- func (repo *Local) IsAncestor(ancestorCommit, descendantCommit string) (bool, error)
- func (repo *Local) IsCommitExists(commit string) (bool, error)
- func (repo *Local) IsEmpty() (bool, error)
- func (repo *Local) IsHeadReferenceExist() (bool, error)
- func (repo *Local) IsShallowClone() (bool, error)
- func (repo *Local) LsTree(pathMatcher path_matcher.PathMatcher, opts LsTreeOptions) (*ls_tree.Result, error)
- func (repo *Local) PlainOpen() (*git.Repository, error)
- func (repo *Local) RemoteBranchesList() ([]string, error)
- func (repo *Local) RemoteOriginUrl() (string, error)
- func (repo *Local) Status(pathMatcher path_matcher.PathMatcher) (*status.Result, error)
- func (repo *Local) SyncWithOrigin() error
- func (repo *Local) TagsList() ([]string, error)
- type LsTreeOptions
- type Patch
- type PatchFile
- type PatchOptions
- type Remote
- func (repo *Remote) Checksum(opts ChecksumOptions) (checksum Checksum, err error)
- func (repo *Remote) Clone() (bool, error)
- func (repo *Remote) CloneAndFetch() error
- func (repo *Remote) CreateArchive(opts ArchiveOptions) (Archive, error)
- func (repo *Remote) CreateDetachedMergeCommit(fromCommit, toCommit string) (string, error)
- func (repo *Remote) CreatePatch(opts PatchOptions) (Patch, error)
- func (repo *Remote) Fetch() error
- func (repo *Remote) GetClonePath() string
- func (repo *Remote) GetMergeCommitParents(commit string) ([]string, error)
- func (repo *Remote) HeadCommit() (string, error)
- func (repo *Remote) IsAncestor(ancestorCommit, descendantCommit string) (bool, error)
- func (repo *Remote) IsCommitExists(commit string) (bool, error)
- func (repo *Remote) IsEmpty() (bool, error)
- func (repo *Remote) LatestBranchCommit(branch string) (string, error)
- func (repo *Remote) RemoteBranchesList() ([]string, error)
- func (repo *Remote) RemoteOriginUrl() (string, error)
- func (repo *Remote) TagCommit(tag string) (string, error)
- func (repo *Remote) TagsList() ([]string, error)
- func (repo *Remote) ValidateEndpoint() error
Constants ¶
View Source
const GitRepoCacheVersion = "3"
View Source
const GitWorkTreeCacheVersion = "6"
Variables ¶
This section is empty.
Functions ¶
func GetGitRepoCacheDir ¶
func GetGitRepoCacheDir() string
func GetWorkTreeCacheDir ¶
func GetWorkTreeCacheDir() string
Types ¶
type Archive ¶
type Archive interface { GetFilePath() string GetType() ArchiveType IsEmpty() bool }
type ArchiveFile ¶
type ArchiveFile struct { FilePath string Descriptor *true_git.ArchiveDescriptor }
func NewTmpArchiveFile ¶
func NewTmpArchiveFile() *ArchiveFile
func (*ArchiveFile) GetFilePath ¶
func (a *ArchiveFile) GetFilePath() string
func (*ArchiveFile) GetType ¶
func (a *ArchiveFile) GetType() ArchiveType
func (*ArchiveFile) IsEmpty ¶
func (a *ArchiveFile) IsEmpty() bool
type ArchiveOptions ¶
type ArchiveOptions struct { FilterOptions Commit string }
type ArchiveType ¶
type ArchiveType string
const ( FileArchive ArchiveType = "file" DirectoryArchive ArchiveType = "directory" )
type ChecksumDescriptor ¶
func (*ChecksumDescriptor) GetNoMatchPaths ¶
func (c *ChecksumDescriptor) GetNoMatchPaths() []string
func (*ChecksumDescriptor) String ¶
func (c *ChecksumDescriptor) String() string
type ChecksumOptions ¶
type ChecksumOptions struct { FilterOptions Paths []string Commit string }
type FilterOptions ¶
type GitRepo ¶
type GitRepo interface { String() string GetName() string IsEmpty() (bool, error) HeadCommit() (string, error) LatestBranchCommit(branch string) (string, error) TagCommit(tag string) (string, error) IsCommitExists(commit string) (bool, error) IsAncestor(ancestorCommit, descendantCommit string) (bool, error) GetMergeCommitParents(commit string) ([]string, error) CreateDetachedMergeCommit(fromCommit, toCommit string) (string, error) CreatePatch(PatchOptions) (Patch, error) CreateArchive(ArchiveOptions) (Archive, error) Checksum(ChecksumOptions) (Checksum, error) }
type Local ¶
func (*Local) CheckIgnore ¶
func (repo *Local) CheckIgnore(paths []string) (*check_ignore.Result, error)
func (*Local) Checksum ¶
func (repo *Local) Checksum(opts ChecksumOptions) (checksum Checksum, err error)
func (*Local) CreateArchive ¶
func (repo *Local) CreateArchive(opts ArchiveOptions) (Archive, error)
func (*Local) CreateDetachedMergeCommit ¶
func (*Local) CreatePatch ¶
func (repo *Local) CreatePatch(opts PatchOptions) (Patch, error)
func (*Local) FetchOrigin ¶ added in v1.1.23
func (*Local) GetMergeCommitParents ¶
func (*Local) HeadCommit ¶
func (*Local) IsAncestor ¶
func (*Local) IsHeadReferenceExist ¶
func (*Local) IsShallowClone ¶
func (*Local) LsTree ¶
func (repo *Local) LsTree(pathMatcher path_matcher.PathMatcher, opts LsTreeOptions) (*ls_tree.Result, error)
func (*Local) RemoteBranchesList ¶
func (*Local) RemoteOriginUrl ¶
func (*Local) Status ¶
func (repo *Local) Status(pathMatcher path_matcher.PathMatcher) (*status.Result, error)
func (*Local) SyncWithOrigin ¶ added in v1.1.23
type LsTreeOptions ¶
type PatchFile ¶
type PatchFile struct { FilePath string Descriptor *true_git.PatchDescriptor }
func NewTmpPatchFile ¶
func NewTmpPatchFile() *PatchFile
func (*PatchFile) GetBinaryPaths ¶
func (*PatchFile) GetFilePath ¶
type PatchOptions ¶
type PatchOptions struct { FilterOptions FromCommit, ToCommit string WithEntireFileContext bool WithBinary bool }
type Remote ¶
func OpenRemoteRepo ¶
func (*Remote) Checksum ¶
func (repo *Remote) Checksum(opts ChecksumOptions) (checksum Checksum, err error)
func (*Remote) CloneAndFetch ¶
func (*Remote) CreateArchive ¶
func (repo *Remote) CreateArchive(opts ArchiveOptions) (Archive, error)
func (*Remote) CreateDetachedMergeCommit ¶
func (*Remote) CreatePatch ¶
func (repo *Remote) CreatePatch(opts PatchOptions) (Patch, error)
func (*Remote) GetClonePath ¶
func (*Remote) GetMergeCommitParents ¶
func (*Remote) HeadCommit ¶
func (*Remote) IsAncestor ¶
func (*Remote) LatestBranchCommit ¶
func (*Remote) RemoteBranchesList ¶
func (*Remote) RemoteOriginUrl ¶
func (*Remote) ValidateEndpoint ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.