gitlog

package
v0.0.0-...-42e5483 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGitStatus

func CheckGitStatus(repoPath string) bool

func CheckOutOnCommit

func CheckOutOnCommit(repoPath string, IDCommit string) ([]string, error)

func ClearUntrackedFiles

func ClearUntrackedFiles(repoPath string) error

func ExtractCommitsFromRepository

func ExtractCommitsFromRepository(repoPath string) ([]types.CommitInfo, error)

func FindAllMergeCommit

func FindAllMergeCommit(repopath string) []string

func GetGitCommitsParents

func GetGitCommitsParents(commits []types.CommitInfo, repopath string) []types.CommitInfo

func RunFullGitLogExtractionWithoutFileDiff

func RunFullGitLogExtractionWithoutFileDiff(repoPath string) ([]string, error)

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

func RunGitCommandOnDir(repoPath string, args []string, setDiff bool) ([]string, error)

func RunSingleCommitDiffExtraction

func RunSingleCommitDiffExtraction(repoPath string, commitID types.CommitID) []string

RunSingleCommitDiffExtraction extracts the git log for a single commit with inclusion of the diff

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

Jump to

Keyboard shortcuts

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