git

package
v0.0.0-...-f4b013d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvatarURL

func GetAvatarURL(repoInfo *RepoInfo, author Author, size int) string

func GetCommitURL

func GetCommitURL(repoInfo *RepoInfo, commitHash string) string

func GetFileURL

func GetFileURL(repoInfo *RepoInfo, commitHash, filePath string) string

Types

type Author

type Author struct {
	Name  string
	Email string
}

type FileInfo

type FileInfo struct {
	LastCommitHash    string
	LastCommitDate    string
	LastCommitMessage string
	LastAuthorName    string
	LastAuthorEmail   string
	Authors           []Author
	TotalCommits      int
}

func GetFileInfo

func GetFileInfo(repoPath, filePath string) (*FileInfo, error)

type RepoInfo

type RepoInfo struct {
	IsRepo        bool
	RemoteURL     string
	Provider      string
	RepoOwner     string
	RepoName      string
	CurrentBranch string
	GitRoot       string
}

func GetRepoInfo

func GetRepoInfo(repoPath string) *RepoInfo

Jump to

Keyboard shortcuts

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