git

package
v0.0.1-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlobs

func GetBlobs(r *git.Repository) (*[]*object.Blob, error)

func GetBranches

func GetBranches(r *git.Repository) (*[]*plumbing.Reference, error)

func GetCommits

func GetCommits(r *git.Repository) (*[]*object.Commit, error)

func GetConfig

func GetConfig(r *git.Repository) (*gitconfig.Config, error)

func GetEcosystem

func GetEcosystem(filename string, e *map[string]int)

func GetLanguages

func GetLanguages(filename string, l *map[string]int)

func GetLicense

func GetLicense(f *object.File) (string, error)

func GetObjects

func GetObjects(r *git.Repository) (*[]*object.Object, error)

func GetReferences

func GetReferences(r *git.Repository) (*[]*plumbing.Reference, error)

func GetRemotes

func GetRemotes(r *git.Repository) (*[]*git.Remote, error)

func GetTagRefs

func GetTagRefs(r *git.Repository) (*[]*plumbing.Reference, error)

func GetTags

func GetTags(r *git.Repository) (*[]*object.Tag, error)

func GetTrees

func GetTrees(r *git.Repository) (*[]*object.Tree, error)

func GetURL

func GetURL(r *git.Repository) (string, error)

func GetWorkTree

func GetWorkTree(r *git.Repository) (*git.Worktree, error)

Types

type Repo

type Repo struct {
	Name    string
	Owner   string
	Source  string
	URL     string
	License string
	// is_maintained bool
	Languages        string
	Ecosystems       string
	CreatedSince     time.Time
	UpdatedSince     time.Time
	ContributorCount int
	OrgCount         int
	CommitFrequency  float64
}

func NewRepo

func NewRepo() Repo

func ParseRepo

func ParseRepo(r *git.Repository) (*Repo, error)

func (*Repo) Show

func (repo *Repo) Show()

func (*Repo) WalkLog

func (repo *Repo) WalkLog(r *git.Repository) error

func (*Repo) WalkRepo

func (repo *Repo) WalkRepo(r *git.Repository) error

Jump to

Keyboard shortcuts

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