Documentation ¶
Index ¶
- func CheckGitStatus(repoPath string) bool
- func CheckOutOnCommit(repoPath string, IDCommit string) ([]string, error)
- func ClearUntrackedFiles(repoPath string) error
- func ExtractCommitsFromRepository(repoPath string) ([]types.CommitInfo, error)
- func FindAllMergeCommit(repopath string) []string
- func GetGitCommitsParents(commits []types.CommitInfo, repopath string) []types.CommitInfo
- func RunFullGitLogExtractionWithoutFileDiff(repoPath string) ([]string, error)
- func RunGitCommandOnDir(repoPath string, args []string, setDiff bool) ([]string, error)
- func RunSingleCommitDiffExtraction(repoPath string, commitID types.CommitID) []string
- type GitLogDecoder
- func (d *GitLogDecoder) AddError(err string)
- func (d *GitLogDecoder) Clear()
- func (d *GitLogDecoder) DecodeAuthorInfo(text string) types.AuthorInfo
- func (d *GitLogDecoder) DecodeDateTime(text string) time.Time
- func (d *GitLogDecoder) DecodeFileChanges(lines []string) []types.FileChange
- func (d *GitLogDecoder) DecodeMerge(text string) bool
- func (d *GitLogDecoder) DecodeMessage(lines []string) string
- func (d *GitLogDecoder) Err() error
- type GitRepository
- func (r *GitRepository) ExtractCommits() ([]types.CommitInfo, error)
- func (r *GitRepository) GetAbsPath() string
- func (r *GitRepository) HasLocalModifications() (bool, error)
- func (r *GitRepository) Name() repos.ProjectName
- func (r *GitRepository) SampleWithCmd(tool repos.ExternalTool, rate repos.SamplingRate, commits []types.CommitInfo, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGitStatus ¶
func ClearUntrackedFiles ¶
func ExtractCommitsFromRepository ¶
func ExtractCommitsFromRepository(repoPath string) ([]types.CommitInfo, error)
func FindAllMergeCommit ¶
func GetGitCommitsParents ¶
func GetGitCommitsParents(commits []types.CommitInfo, repopath string) []types.CommitInfo
func RunFullGitLogExtractionWithoutFileDiff ¶
RunFullGitLogExtractionWithoutFileDiff extracts the full git log very quickly but without querying the details of the source code changes (which are costly to retrieve)
func RunGitCommandOnDir ¶
Types ¶
type GitLogDecoder ¶
type GitLogDecoder struct {
// contains filtered or unexported fields
}
func (*GitLogDecoder) AddError ¶
func (d *GitLogDecoder) AddError(err string)
func (*GitLogDecoder) Clear ¶
func (d *GitLogDecoder) Clear()
func (*GitLogDecoder) DecodeAuthorInfo ¶
func (d *GitLogDecoder) DecodeAuthorInfo(text string) types.AuthorInfo
func (*GitLogDecoder) DecodeDateTime ¶
func (d *GitLogDecoder) DecodeDateTime(text string) time.Time
func (*GitLogDecoder) DecodeFileChanges ¶
func (d *GitLogDecoder) DecodeFileChanges(lines []string) []types.FileChange
func (*GitLogDecoder) DecodeMerge ¶
func (d *GitLogDecoder) DecodeMerge(text string) bool
func (*GitLogDecoder) DecodeMessage ¶
func (d *GitLogDecoder) DecodeMessage(lines []string) string
func (*GitLogDecoder) Err ¶
func (d *GitLogDecoder) Err() error
type GitRepository ¶
type GitRepository struct {
// contains filtered or unexported fields
}
func NewGitRepository ¶
func NewGitRepository(path string) *GitRepository
func (*GitRepository) ExtractCommits ¶
func (r *GitRepository) ExtractCommits() ([]types.CommitInfo, error)
func (*GitRepository) GetAbsPath ¶
func (r *GitRepository) GetAbsPath() string
func (*GitRepository) HasLocalModifications ¶
func (r *GitRepository) HasLocalModifications() (bool, error)
func (*GitRepository) Name ¶
func (r *GitRepository) Name() repos.ProjectName
func (*GitRepository) SampleWithCmd ¶
func (r *GitRepository) SampleWithCmd(tool repos.ExternalTool, rate repos.SamplingRate, commits []types.CommitInfo, samples []types.SampleInfo, p core.Progress) error
Click to show internal directories.
Click to hide internal directories.