gitfame

package
v0.0.0-...-aced583 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorInfo

type AuthorInfo struct {
	Name    string `json:"name"`
	Commits int    `json:"commits"`
	Lines   int    `json:"lines"`
	Files   int    `json:"files"`
}

type CommitInfo

type CommitInfo struct {
	Author string
	Lines  int
}

type GitContext

type GitContext struct {
	Revision    string
	Directory   string
	UseCommiter bool
	Progress    bool
	// contains filtered or unexported fields
}

func NewContext

func NewContext(predicate func(string) bool) GitContext

func (*GitContext) Blame

func (g *GitContext) Blame(filename string) (map[string]*CommitInfo, error)

func (*GitContext) Gitfame

func (g *GitContext) Gitfame() ([]AuthorInfo, error)

func (*GitContext) Log

func (g *GitContext) Log(filename string) (string, CommitInfo, error)

func (*GitContext) LsTree

func (g *GitContext) LsTree() ([]string, error)

type GitContextInterface

type GitContextInterface interface {
	Gitfame() ([]AuthorInfo, error)
}

Jump to

Keyboard shortcuts

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